寻找具有不同文件夹的两个项目的原因,在laravel上指向localhost上的同一网站
I've two projects on laravel with different folder as in:
localhost/hgwebstore/public/ -- Working for more than 2 months
localhost/exposition/public/ -- Recently created
Both of the projects are created from composer. My problem is while I open the first URL initially, Its content loads normally. But as I try to open second URL, instead of showing the content of second URL its pointing to first URL.
URL: localhost/hgwebstore/public/
Now If I try to open URL: localhost/exposition/public/
Here the style changes because the CSS files are not found in later URL.
But problem goes weirdest when I restart apache server and visit the later URL at first. Here, the content of later URL is displayed in both of the URL.
Visiting URL :localhost/exposition/public/
Visiting URL: localhost/hgwebstore/public/
How is this issue occurred? How could the issue be resolved?
我在laravel上有两个项目,其中包含不同的文件夹: p>
localhost / hgwebstore / public / - 工作超过2个月
localhost / exposition / public / - 最近创建
code> pre>
两个项目都是 从作曲家创作。
我的问题是我最初打开第一个URL时,其内容正常加载。 但是当我尝试打开第二个URL时,而不是显示第二个URL的内容,它指向第一个URL。 p>
网址:localhost / hgwebstore / public /
p>
现在如果我尝试打开 URL:localhost / exposition / public /
p>
此处样式发生变化,因为在以后的网址中找不到CSS文件。 p>
但是当我重新启动apache服务器并首先访问更高版本的URL时,问题变得更加奇怪了。 在这里,后面的URL的内容显示在两个URL中。 p>
访问URL:localhost / exposition / public /
访问URL:localhost / hgwebstore / public /
p>
如何发生此问题? 如何解决问题? p>
div>
Here, the reason the webserver behaving such is due to enable of APC extension that has taken the same cache for both websites. By disabling, the APC fixed the issue.