问题描述
我在 Apache 虚拟主机中使用不同的端口 app1
和 app2
运行两个 Laravel 应用程序(8998
、8999
):
app1:215.215.175.1:8998
应用2:215.215.175.1:8999
但是当我进入app1的登录页面时,app2会自动退出,当我登录app2时,app1会退出。
我在 Apache 中的主机设置
215.215.175.1 app1.test
215.215.175.1 app2.test
在网站启用我创建两个文件 app1.conf 和 app2.conf
app1.conf
Listen 8999
NameVirtualHost *:8999
<VirtualHost *:8999>
ServerName app1.test
ServerAlias www.app1.test
DocumentRoot "C:/laragon/www/data/app1/public"
DirectoryIndex index.PHP
<Directory "C:/laragon/www/data/app1/public/">
#Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
app2.conf
Listen 8998
NameVirtualHost *:8998
<VirtualHost *:8998>
ServerName app2.test
ServerAlias www.app2.test
DocumentRoot "C:/laragon/www/data/app2/public"
DirectoryIndex index.PHP
<Directory "C:/laragon/www/data/app2/public/">
#Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)