vhost Apache Konfiguration
[email protected] Sun, 19 Mar 2017 22:21:12 +0100
| Newsgroups | gmane.os.freebsd.questions.german |
|---|---|
| Message-ID | <[email protected]> |
Hallo, seit einigen Monaten akzeptiert der Apache Server die vhosts nicht mehr. Hier das Verhalten: Es sind web_ftimmer (und weitere) als vhosts eingebunden (s.u.). Ein ping von der Konsole auf web_ftimmer läuft. Ein ping auf localhost läuft auch, obwohl dieser in der Datei /etc/hosts auskommentiert ist. Wenn ich localhost im Webbrowser aufrufe, erscheint der erste Eintrag der vhosts.conf Datei. Über phpinfo wird die in vhosts (1. Eintrag) angegebene Emailadresse ausgegeben. Wenn ich web_ftimmer in Firefox oder Chromium aufrufe, erscheint die 400-Fehlerseite bzw. die Meldung: Your browser sent a request that this server could not understand. Hier die wichtigsten Daten: Hier ein Auszug aus /usr/local/etc/apache24/extra/htpd_vhosts.conf <VirtualHost *:80> ServerName web_ftimmer DocumentRoot /server/www/web_ftimmer ServerAdmin [email protected] RewriteEngine off <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /server/www/web_ftimmer/> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> ErrorLog /var/log/apache2/error.log LogLevel info CustomLog /var/log/apache2/access.log combined </VirtualHost> Die Datei /etc/hosts beinhaltet: 127.0.0.1 web_ftimmer .. und weitere (aber nicht localhost) % apachectl -S VirtualHost configuration: *:80 is a NameVirtualHost default server web_ftimmer (/usr/local/etc/apache24/extra/httpd-vhosts.conf:31) port 80 namevhost web_ftimmer (/usr/local/etc/apache24/extra/httpd-vhosts.conf:31) port 80 namevhost web_ft-c (/usr/local/etc/apache24/extra/httpd-vhosts.conf:64) ... und weitere ServerRoot: "/usr/local" Main DocumentRoot: "/server/www" Main ErrorLog: "/var/log/apache2/error.log" Mutex default: dir="/var/run/" mechanism=default Mutex mpm-accept: using_defaults Mutex rewrite-map: using_defaults PidFile: "/var/run/httpd.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="www" id=80 Group: name="www" id=80 % apachectl -t -D DUMP_INCLUDES Included configuration files: (*) /usr/local/etc/apache24/httpd.conf (503) /usr/local/etc/apache24/extra/httpd-vhosts.conf (531) /usr/local/etc/apache24/Includes/no-accf.conf Weitere Informationen: Bei einem Update (schon lange her) erhielt ich die Info: You may need to manually remove /usr/local/etc/apache24/extra/httpd-vhosts.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/httpd.conf if it is no longer needed. % uname -a FreeBSD ftc2 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 Und jetzt die Frage: Wo liegt der Fehler? Warum werden die vhosts nicht umgesetzt? Gruss Franz To Unsubscribe: send mail to [email protected] with "unsubscribe de-bsd-questions" in the body of the message