[英]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.