小编Syl*_*Ash的帖子

Yosemite升级后破坏的Apache虚拟主机

我最近升级到MAC OS X Yosemite,我的虚拟主机的apache配置无效.我根据@raoulsson(https://superuser.com/questions/827937/apache-problems-after-upgrading-to-yosemite)的建议升级了php :

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
Run Code Online (Sandbox Code Playgroud)

还编辑了/etc/apache2/extra/httpd-vhosts.conf:

<VirtualHost *:80>
 ServerName test.local
 DocumentRoot "/Users/my-name/www/test"

 <Directory "/Users/my-name/www/test>
     AllowOverride All
     #Order allow,deny
     #Allow from all
    Require all granted

    RewriteEngine on

    # Don't rewrite files or directories
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Rewrite everything else to index.html to allow html5 state links
    RewriteRule ^ index.html [L]
 </Directory>

 <IfModule dir_module>
    DirectoryIndex index.html
 </IfModule>

 <Files ".ht*">
    Order deny,allow
    Deny from all …
Run Code Online (Sandbox Code Playgroud)

php apache osx-yosemite

2
推荐指数
1
解决办法
3360
查看次数

标签 统计

apache ×1

osx-yosemite ×1

php ×1