我在linux mint上,我想爲我的symfony 3應用程序配置虛擬主機。您沒有權限訪問/在此服務器上
這是我在/etc/apache2/sites-available/evaluation.conf虛擬主機:
<VirtualHost *:80>
ServerName evaluation.dev
ServerAlias www.evaluation.dev
DocumentRoot /home/sahnoun/InternshipPFE/Dev/systeme_evaluation/web
<Directory /home/sahnoun/InternshipPFE/Dev/systeme_evaluation/web>
AllowOverride All
Order Deny,Allow
Allow from All
</Directory>
ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined
</VirtualHost>
我已經添加了主機在/ etc/hosts中這樣的:
127.0.0.1 evaluation.dev
那不是wrking對我來說,它返回此錯誤:
故宮
您沒有訪問此服務器上的權限。 的Apache/2.4.18(Ubuntu的)在evaluation.dev端口服務器8
請關閉VirtualHost指令。在你的httpd.conf中查看是否啓用了虛擬主機 – Hokusai
感謝@Hokusai,是的,它已關閉我忘記了它,我啓用了我的虛擬主機,同樣的問題! – sahnoun
它應該在/ conf目錄中。還請記住將'DirectoryIndex app.php'放入'Directory'指令中。 – Hokusai