[英]Symfony 4 - My Wampserver Vhost doesn't work
我想在我的 Symfony 4 項目中使用 vHost。
它位於 c:/wamp64/www/symbnbb
因此,在我的主機文件中,我添加了以下內容:
127.0.0.1 symbnbb.local :: 1 symbnbb.local
在 %APACHEDIR%\\conf\\extra\\httpd-vhosts.conf,我添加了:
<VirtualHost *:80>
ServerName symbnbb.local
ServerAlias www.symbnbb.local
DocumentRoot "c:/wamp64/www/symbnbb/public"
<Directory "c:/wamp64/www/symbnbb/public/">
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>
但它不起作用,如果我去本地主機,我有這個:
Le chemin ${INSTALL_DIR}/www pour DocumentRoot n'existe pas (Fichier c:/wamp64/bin/apache/apache2.4.37/conf/extra/httpd-vhosts.conf)
Le chemin ${INSTALL_DIR}/www/ pour <Directory ... n'existe pas (Fichier c:/wamp64/bin/apache/apache2.4.37/conf/extra/httpd-vhosts.conf)
有人能幫助我嗎 ?
在您的主機文件 juste 中寫入:
127.0.0.1 symbnbb.local
在您的虛擬主機中刪除:
ServerAlias www.symbnbb.local
然后在您的網絡瀏覽器中,調用“symbnbb.local”,它應該可以工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.