patman3d Posted March 17, 2006 Report Share Posted March 17, 2006 Hello there, First off, I would like to thank you for providing a simple server solution with Uniform Server. It is the easiest one that I have installed on my computer. I have been using Uniform Server for testing and editing of website without going online. The problem that I have been experiencing lately is similar to the individual who started this thread:http://forum.uniformserver.com/index.php?s...13&hl=subdomain It is an older one so I thought I should start a new thread on the topic. The problem that I have been experiencing is the changing of the root folder. Usually when I enter http://localhost/ , I have been accessing the www folder. Now though, it has seemed to change from the www folder and is now the 1st subdomain folder I had created through the Admin Virtual Host. Basically when I try to access a 2nd or 3rd subdomain for example http://localhost/secondsubdoman/ the server sends a 404 message url not found. I tried to access all the subdomains and I get the same error. But, when I open up http://localhost/ it ends up getting the content from subdomain one. And it doesn't matter what I type in http://subdomain2/ or http://subdomain3/ etc... they all acquire the site of subdomainone . When looking through the error logs, it showed (exerpt)- [Fri Mar 17 14:12:00 2006] [error] [client 127.0.0.1] File does not exist: W:/www/sub1/sub3 - [Fri Mar 17 14:11:58 2006] [error] [client 127.0.0.1] File does not exist: W:/www/sub1/sub3 - [Fri Mar 17 14:10:16 2006] [error] [client 127.0.0.1] File does not exist: W:/home/admin/www/phpMyAdmin/themes/original/img/error.ico, referer: http://localhost/apanel/phpMyAdmin/db_details_structure.php?lang=en-utf-8&server=1&collation_connection=utf8_general_ci&db=one - operable program or batch file. - 'Apache.exe' is not recognized as an internal or external command, - [Fri Mar 17 13:56:36 2006] [error] [client 127.0.0.1] File does not exist: W:/www/sub1/favicon.ico, referer: http://localhost/ads.html - [Fri Mar 17 13:52:54 2006] [error] [client 127.0.0.1] File does not exist: W:/www/sub1/favicon.ico, referer: http://localhost/index1.html - [Fri Mar 17 13:52:43 2006] [error] [client 127.0.0.1] File does not exist: W:/www/sub1/favicon.ico, referer: http://localhost/index1.html - [Fri Mar 17 13:48:09 2006] [error] [client 127.0.0.1] File does not exist: W:/www/sub1/apanel It seems to me that somehow subdomain1 (sub1) turned into the www root folder. I had a problem like this before and couldn't access any of the subdomains and so I started all over by deleting everything and starting anew. Now the problem has come back. Any help to resolve this would be greatly appreciated Patrick T ps... I am able to enter the admin panel by typing the complete address: http://localhost/apanel/index.php Quote Link to comment Share on other sites More sharing options...
patman3d Posted March 17, 2006 Author Report Share Posted March 17, 2006 Ok, It appears that I may have solved my problem if I would have know about this post: http://forum.uniformserver.com/index.php?showtopic=317 I entered the following code below the #<VirtualHost *>...#</VirtualHost> that was located way at the bottom of the httpd.conf file and above the section that started ##########VIRTUAL HOST SETUP##########<VirtualHost *> ServerName localhost DocumentRoot /www </VirtualHost> <VirtualHost *:80> ServerName localhost DocumentRoot "/www/" </VirtualHost> At first when I changed the httpd.conf file, I restarted apache a few times but to no effect. Restarted it a few times and tried to access the subdomains and it still had the old problem of root was sub1. I shut Uniform Server and all open programs, logged out of windows (too lazy to restart), then logged back into windows. Started Uniform Server back up and it seems everything is now moving smoothly I don't know which one of the two or even both are necessary for it to work properly, and I'm not going to try and test it out ... unless of course you want me to. Quote Link to comment Share on other sites More sharing options...
AlleyKat Posted March 19, 2006 Report Share Posted March 19, 2006 Detail is, it depends on several factors - mainly on the Listen and NameVirtualHosts directives. Both should be good if both Listen and NameVirtualHosts are set up fully, I think. Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted March 24, 2006 Report Share Posted March 24, 2006 Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.