misterunknown schrieb:
uPilger schrieb:
das gibt mir folgendes:
systemctl status apache2.service
Failed to connect to bus: No such file or directory
Das ist IMHO eine systemd-Fehlermeldung, die nichts mit Apache zu tun hat.
Hängt das möglicherweise mit dem redirect auf https, den ich der vhst habe zusammen?
Hast du die Location in den SSL-VHost eingetragen?
Beim ersten Versuch hatte ich es in die http-vhost eingetragen. Jetzt habe ich in der ssl-vhost
ProxyVia On
ProxyRequests Off
ProxyPreserveHost on
<Location /pad>
ProxyPass http://localhost:9001/ retry=0 timeout=30
ProxyPassReverse http://localhost:9001/
</Location>
<Location /pad/socket.io>
RewriteEngine On
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:9001/socket.io/$1 [P,L]
ProxyPass http://localhost:9001/socket.io retry=0 timeout=30
ProxyPassReverse http://localhost:9001/socket.io
</Location>
<Proxy *>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Proxy>
Apache startet aber ich bekomme beim Aufruf von mydomain.de/pad die Fehlermeldung
Cannot GET //
Wenn ich im Abschnitt <Location /pad>
<Location /pad>
ProxyPass / http://localhost:9001/ retry=0 timeout=30
ProxyPassReverse / http://localhost:9001/
</Location>
jeweils den Slash nach ProxyPass und ProxyPassReverse einfüge kommt es zu dieser Fehlermeldung nach dem restart des apache:
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
sudo systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Mi 2018-07-04 13:38:58 CEST; 3min 29s ago
Docs: man:systemd-sysv-generator(8)
Process: 24223 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 2830 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
Process: 24249 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)