Macos El Capitan升级和Apache VHost问题

Macos El Capitan升级和Apache VHost问题,macos,apache,osx-elcapitan,Macos,Apache,Osx Elcapitan,所以这让我抓狂了。我已经计算出/etc/httpd.conf和/etc/httpd.conf.pre-update与正确的默认加载模块之间的区别,包括应用升级的加载模块,但是我有一些vhost不能很好地运行。在升级之前,所有这些都很好,并在以下方面出现了故障: http://localhost (DocumentRoot /www works fine) http://test (DocumentRoot /www/test serves "It works!" from the standar

所以这让我抓狂了。我已经计算出/etc/httpd.conf和/etc/httpd.conf.pre-update与正确的默认加载模块之间的区别,包括应用升级的加载模块,但是我有一些vhost不能很好地运行。在升级之前,所有这些都很好,并在以下方面出现了故障:

http://localhost (DocumentRoot /www works fine)
http://test (DocumentRoot /www/test serves "It works!" from the standard DocumentRoot and nothing shows in /var/log/apache2/access_log)
http://test/index.php (works)
http://localhost/test (works)
httpd.conf摘录

DocumentRoot "/www"
<Directory "/www">
    Options FollowSymLinks Multiviews
    MultiviewsMatch Any
    AllowOverride All
    Require all granted
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>
<VirtualHost *:80>
    DocumentRoot "/www/test"
    ServerName test
</VirtualHost>
httpd-S显示站点正在正确加载

VirtualHost configuration:
*:80                   is a NameVirtualHost
     default server localhost (/private/etc/apache2/extra/httpd-vhosts.conf:24)
     port 80 namevhost localhost (/private/etc/apache2/extra/httpd-vhosts.conf:24)
     port 80 namevhost phpmyadmin (/private/etc/apache2/extra/httpd-vhosts.conf:29)
     port 80 namevhost site1.local (/private/etc/apache2/extra/httpd-vhosts.conf:34)
     port 80 namevhost ideas.local (/private/etc/apache2/extra/httpd-vhosts.conf:39)
     port 80 namevhost site2.local (/private/etc/apache2/extra/httpd-vhosts.conf:44)
     port 80 namevhost site3.local (/private/etc/apache2/extra/httpd-vhosts.conf:49)
     port 80 namevhost site4 (/private/etc/apache2/extra/httpd-vhosts.conf:54)
     port 80 namevhost site5 (/private/etc/apache2/extra/httpd-vhosts.conf:59)
     port 80 namevhost site6 (/private/etc/apache2/extra/httpd-vhosts.conf:64)
     port 80 namevhost site7 (/private/etc/apache2/extra/httpd-vhosts.conf:69)
     port 80 namevhost site8 (/private/etc/apache2/extra/httpd-vhosts.conf:74)
     port 80 namevhost test (/private/etc/apache2/extra/httpd-vhosts.conf:79)
ServerRoot: "/usr"
Main DocumentRoot: "/www"
Main ErrorLog: "/private/var/log/apache2/error_log"
Mutex default: dir="/private/var/run/" mechanism=default 
Mutex mpm-accept: using_defaults
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: using_defaults
Mutex proxy: using_defaults
PidFile: "/private/var/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="_www" id=70 not_used
Group: name="_www" id=70 not_used
*.local站点正确加载,尽管它们的文档根如下所示:

/www/site1/public
我已经看了这么久了,我错过了一些非常明显的东西,不是吗。请让我摆脱痛苦吧


谢谢。

所以,最终的结果似乎是要么我非常非常愚蠢,要么Safari的缓存系统非常非常愚蠢

我去拿我的外套


(El Capitan把我的系统搞得一团糟,我仍然感到震惊——我显然还有很多关于OSX的知识要学习)

我也面临着类似的问题。我的vHosts根本不起作用。stackoverflow.com/questions/42398591/apache-virtual-hosts-trung-breaked-mac-os-x-el-capitan
/www/site1/public