Я надеялся получить некоторые рекомендации по следующей проблеме, которая у меня возникла. Когда я пытаюсь запустить сервер apache2, я получаю следующую ошибку.
user@kali:~# service apache2 start
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Вот что я делаю дальше.
user@kali:~# journalctl | tail
Jan 21 01:19:32 kali pulseaudio[839]: E: [alsa-sink-ES1371/1] alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_ens1371'. Please report this issue to the ALSA developers.
Jan 21 01:19:32 kali pulseaudio[839]: E: [alsa-sink-ES1371/1] alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
Jan 21 01:19:35 kali systemd[1]: Starting The Apache HTTP Server...
Jan 21 01:19:35 kali apachectl[1355]: AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/ajp.conf:
Jan 21 01:19:35 kali apachectl[1355]: Invalid command 'ProxyRequests', perhaps misspelled or defined by a module not included in the server configuration
Jan 21 01:19:35 kali apachectl[1355]: Action 'start' failed.
Jan 21 01:19:35 kali apachectl[1355]: The Apache error log may have more information.
Jan 21 01:19:35 kali systemd[1]: apache2.service: Control process exited, code=exited status=1
Jan 21 01:19:35 kali systemd[1]: apache2.service: Failed with result 'exit-code'.
Jan 21 01:19:35 kali systemd[1]: Failed to start The Apache HTTP Server.
Я поднимаю файл ajp.conf, и это то, что он показывает.
ProxyRequests Off
# Only allow localhost to proxy requests
<Proxy *>
Order deny,allow
Deny from all
Allow from localhost
</Proxy>
# Change the IP address in the below lines to the remote servers IP address hosting the Tomcat instance
ProxyPass / ajp://**.**.*.***:8009/
ProxyPassReverse / ajp://**.**.*.***:8009/