我想讓Symfony在沒有使用內置PHP服務器的情況下工作,但是當我試圖通過我的虛擬主機地址訪問它時,我總是得到403。我的虛擬主機的conf文件看起來像這樣:阿帕奇虛擬主機問題
<VirtualHost *:80>
ServerName www.symfony2.local
ServerAlias symfony2.local
DocumentRoot /var/www/vhosts/symfony2.local/web
<Directory /var/www/vhosts/symfony2.local/web>
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/symfony2-error.log
CustomLog /var/log/httpd/symfony2-access.log combined
</VirtualHost>
我的hosts文件看起來是這樣的:
127.0.0.1 symfony2.local
的的.htaccess在網/是Synfony2安裝文件的默認。
每當我嘗試訪問http://synfony2.local我碰到下面的錯誤在我的日誌文件:
(13)Permission denied: [client 127.0.0.1:32858] AH00529: /var/www/vhosts/symfony2.local/web/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/vhosts/symfony2.local/web/' is executable
-rwxr-xr-x. 1 apache apache 2.8K Mar 1 00:48 .htaccess
drwxr-xr-x. 3 apache apache 4.0K Mar 1 01:24 web
可有人請指出我是缺少在這裏?
請確保'symfony2.local'是755權限。 – 2015-03-02 22:48:29