虚拟主机设置laravel xampp

时间:2016-08-01 19:52:45

标签: apache laravel virtualhost virtual-hosts

我正在尝试使用xampp为我的laravel项目设置虚拟主机。我做了以下更改。

httpd.conf上的

Listen 8080
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

我通常使用localhost:8080端口访问我的localhost文件

在httpd-vhosts.conf上

    NameVirtualHost *:8080
<VirtualHost *:8080>
    ServerAdmin admin@abounde.com
    DocumentRoot "C:/xampp/htdocs/code/customer_portal/public"
    ServerName abounde.com
    ErrorLog "logs/abounde.log"
    #CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

从windows / system32 / drivers / etc / hosts

编辑主机文件

并添加以下

127.0.0.1           abounde.com

保存所有更改后,我重新启动了服务器。 我ping了abounde.com,发现域名指向127.0.0.1,这意味着它的工作。

但是,当我尝试访问abounde.com时,基于localhost的站点无法加载

enter image description here

任何诊断问题的方法?

0 个答案:

没有答案