Apache2 não está iniciando - Erro Comando inválido 'ProxyRequests'

1

Eu esperava obter algumas orientações sobre o seguinte problema que estou tendo. Quando tento iniciar meu servidor apache2, recebo o seguinte erro.

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.

Então é isso que eu faço em seguida.

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.

Eu puxo o arquivo ajp.conf e é isso que ele mostra.

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/
    
por dfreelander202 21.01.2018 / 22:48

1 resposta

0

Eu esperava obter algumas orientações sobre o seguinte problema que estou tendo.

A resposta é indicada pela mensagem de erro:

Invalid command 'ProxyRequests', perhaps misspelled or defined by a module not included in the server configuration

ProxyRequests não está incorreto, por isso, provavelmente você não está carregando modules/mod_proxy.so

Em httpd.conf , altere:

#LoadModule proxy_module modules/mod_proxy.so

Para:

LoadModule proxy_module modules/mod_proxy.so
    
por 21.01.2018 / 23:01