Accessing multiple vhosts at once
Posted by: Lideln (---.rev.numericable.fr)
Date: May 06, 2013 07:56PM

Hi,

For the second time, I am experiencing a really strange issue with wamp.

I have, say, my main app vhost : portal.myapp.local (pointing to root/web/portal/) and admin.myapp.local (pointing to root/web/admin/)
Now I want to put some resources in common so that I don't have to duplicate them (JS libs for example).
I create another vhost : static.myapp.local (pointing to root/web/static/)

Now, when I load a page like, say, http: //portal.myapp.local/test.php, if the page loads resources from static.myapp.local, each time it takes between 10 to 20 seconds for the server to start loading the resource. I don't understand what is happening!

If I have a look at apache logs, I have for example :
# in the "portal" access log
127.0.0.1 - - [06/May/2013:19:31:21 +0200] "GET /test.php HTTP/1.1" 200 4046
127.0.0.1 - - [06/May/2013:19:31:21 +0200] "GET /css/main.css HTTP/1.1" 304 -
# in the "static" access log
127.0.0.1 - - [06/May/2013:19:31:37 +0200] "GET /css/foundation.min.css HTTP/1.1" 304 -

Any idea? Before this issue, I was using another directory structure: everything was located in root/web under a subfolder (for example: root/web/css/foundation.min.css and root/web/css/portal/main.css). I added the "static" vhost so that I can create a pseudo-unique server root for each vhost rather than a global root dir with a subdir for each resource type (css, js, img, font, ...).

Please help! smiling smiley

Best regards,

Options: ReplyQuote


Sorry, only registered users may post in this forum.