[英]Laravel Configuration
I have been trying to configure Laravel but it seems to have some kind of error: "IP address could not be found." 我一直在尝试配置Laravel,但似乎存在某种错误:“找不到IP地址。”
This is my configuration in my httpd-vhost.conf Configuration on httpd-vhost 这是我在httpd-vhost上的httpd- vhost.conf 配置中的配置
and this is what I put in my host enter image description here 这就是我放入主机的内容在此处输入图像描述
I tried restarting and checking my syntax through httpd.exe -t in apache but it seems okay 我尝试重新启动并通过httpd.exe -t在apache中检查我的语法,但似乎还可以
You can try this. 你可以试试看
In your httpd-vhost.conf
file write this, If you want virtual host of reviewer then try this, 在您的httpd-vhost.conf
文件中输入以下内容:如果您希望虚拟主机的审阅者,请尝试此操作,
<VirtualHost *:80>
ServerName reviewer.test
ServerAlias reviewer.test
DocumentRoot "C:/xampp/htdocs/reviewer/public"
DirectoryIndex index.php
<Directory "C:/xampp/htdocs/reviewer/public">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
And in your hosts file write this, 然后在您的主机文件中写上
127.0.0.1 reviewer.test
Then restart your all xampp server services. 然后重新启动所有xampp服务器服务。
Problem in your files 您档案中的问题
You haven't removed the comment ( #
this symbol represents that it is comment.) 您尚未删除评论( #
此符号表示它是评论。)
This is your file configuration. 这是您的文件配置。
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# 127.0.0.1 reviewer.dev
You have to remove #
this symbol, and replace dev
with test
. 你必须删除#
这个符号,并更换dev
与test
。 Get more knowledge from this link. 从此链接获取更多知识。
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
127.0.0.1 reviewer.test
I hope this stuff will help you. 希望这些东西对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.