Ich habe letzte Woche von 10.8.1 auf 10.8.2 aktualisiert und seitdem muss ich noch bestimmte Vhosts auf meiner lokalen Sandbox zum Laufen bringen. Einige von ihnen funktionieren gut, während andere jetzt überhaupt nicht mehr funktionieren, wenn sie es früher getan haben. Kann ich irgendetwas tun, damit die wieder funktionieren?
Arbeits-Vhost:
<VirtualHost *:80>
DocumentRoot "/Users/reindeerdev/Sites/patron-social-club-v2-old/app/webroot"
ServerName pscv2.local
ErrorLog "/private/var/log/apache2/pscv2-error_log"
CustomLog "/private/var/log/apache2/pscv2-access_log" common
<Directory /Users/reindeerdev/Sites/patron-social-club-v2-old/app/webroot>
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Problematischer Vhost:
<VirtualHost *:80>
DocumentRoot "/Users/reindeerdev/Sites/Patron_Intranet/app/webroot"
ServerName intranet.local
ErrorLog "/private/var/log/apache2/intranet-error_log"
CustomLog "/private/var/log/apache2/intranet-access_log" common
<Directory /Users/reindeerdev/Sites/Patron_Intranet/app/webroot>
Options All
AllowOverride All
</Directory>
</VirtualHost>
Endlich etwas in meinen Apache-Konfigurationen gesehen:
[Tue Oct 16 10:52:03 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using Logans-iMac.local for ServerName
[Tue Oct 16 10:52:06 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Oct 16 10:52:09 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 16 10:52:09 2012] [notice] Digest: done
[Tue Oct 16 10:52:09 2012] [notice] Apache/2.2.22 (Unix) PHP/5.3.15 with Suhosin-Patch DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8r mod_perl/2.0.5 Perl/v5.12.4 configured -- resuming normal operations
Ich weiß genau, dass ich Include /etc/apache2/other/httpd-vhosts.conf
in meiner httpd.conf-Datei habe und dass ich bestätigt habe, dass dies die richtige vhosts-Datei ist, die ich verwende.
Es wurde festgestellt, dass eine sehr seltsame Änderung der Benutzerberechtigungen im Ordner ~/Sites diese Fehler verursacht hat. Fest.
Sie scheinen keine "Allow" -Direktive in den problematischen vhost eingefügt zu haben. Möglicherweise haben Sie zuvor die globalen Einschränkungen in /etc/apache2/httpd.conf geändert, um sie lockerer zu gestalten, und sie wurden während des Updates außer Kraft gesetzt. Der Standardwert ist Allow none
. Es ist jedoch keine gute Idee, dies auf globaler Ebene zu tun, da dies dem Webserver möglicherweise Zugriff auf das vollständige Dateisystem gewährt.
Um das Problem zu beheben, ändern Sie den vhost in:
<VirtualHost *:80>
DocumentRoot "/Users/reindeerdev/Sites/Patron_Intranet/app/webroot"
ServerName intranet.local
ErrorLog "/private/var/log/apache2/intranet-error_log"
CustomLog "/private/var/log/apache2/intranet-access_log" common
<Directory /Users/reindeerdev/Sites/Patron_Intranet/app/webroot>
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
/etc/hosts
? Hast du dort nachgeschaut und ob es immer noch richtig auflöst?Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
Gerry
NameVirtualHost *:80
in deiner httpd-vhosts.conf?Logan Best
apachectl -S
bekomme ich auch die richtige Ausgabe undSyntax OK