• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Solved Apache2 Reverse Proxy

I have a problem with this tutorial:
https://wiki.sinusbot.com/en:guides:installation:reverse-proxy:apache2

Error:
Code:
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.

Logs:
Code:
root@omgserv-176729:/etc# systemctl status apache2.service

● apache2.service - LSB: Apache2 web server

   Loaded: loaded (/etc/init.d/apache2)

  Drop-In: /lib/systemd/system/apache2.service.d

           └─forking.conf

   Active: active (running) (Result: exit-code) since jeu. 2018-01-11 13:16:49 CET; 7min ago

  Process: 9723 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILURE)

   CGroup: /system.slice/apache2.service

           ├─9423 /usr/sbin/apache2 -k start

           ├─9638 /usr/sbin/apache2 -k start

           └─9639 /usr/sbin/apache2 -k start



janv. 11 13:21:21 omgserv-176729 systemd[1]: Reloading LSB: Apache2 web server.

janv. 11 13:21:21 omgserv-176729 apache2[9723]: Reloading web server: apache...!

janv. 11 13:21:21 omgserv-176729 apache2[9723]: The apache2 configtest faile....

janv. 11 13:21:21 omgserv-176729 apache2[9723]: Output of config test was:

janv. 11 13:21:21 omgserv-176729 apache2[9723]: AH00526: Syntax error on lin...:

janv. 11 13:21:21 omgserv-176729 apache2[9723]: Invalid command 'ProxyPreser...n

janv. 11 13:21:21 omgserv-176729 apache2[9723]: Action 'configtest' failed.

janv. 11 13:21:21 omgserv-176729 apache2[9723]: The Apache error log may hav....

janv. 11 13:21:21 omgserv-176729 systemd[1]: apache2.service: control proces...1

janv. 11 13:21:22 omgserv-176729 systemd[1]: Reload failed for LSB: Apache2 ....

Hint: Some lines were ellipsized, use -l to show in full.

Apache config:
Code:
<VirtualHost localhost:80>
    ServerName bot.example.tld
    
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    ProxyPreserveHost On

    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/

</VirtualHost>
 
Top