为laravel项目创建虚拟主机

问题描述 投票:0回答:1

httpd-vhost

hosts

xampp config**strong text**

我正在使用localhost:8080。这在虚拟主机上有什么不同吗?当我在浏览器中输入lsapp.test时,它说无法访问页面。

php apache
1个回答
0
投票

尝试在8080文件中将您的端口更改为httpd-vhosts

<VirtualHost *:8080>
    ...
    ...
    ...
    # Other directives here
</VirtualHost>

然后重新启动你的apache服务器并访问像这样的lsapp.test:8080

© www.soinside.com 2019 - 2024. All rights reserved.