anwoke8204 Posted October 9, 2006 Share Posted October 9, 2006 Hi, I have configured vhosts on my server. I use multiple sites and only 1 ip address. before I configured virtual hosts on my server all I had to do was type in the server ip address 192.168.1.10/(site folder here) and I could see the site. now since configuring the vhosts I can only see 1 of my 3 sites, and I only have to type in 192.168.1.10 it is as if it is defaulting to the first virtual host container(my main site) and denying me access to the other 2, the outside world can see all 2 sites but I can't. here is my vhosts file, any ideas.## Virtual Hosts## If you want to maintain multiple domains/hostnames on your# machine you can setup VirtualHost containers for them. Most configurations# use only name-based virtual hosts so the server doesn't need to worry about# IP addresses. This is indicated by the asterisks in the directives below.## Please see the documentation at# <URL:http://httpd.apache.org/docs/2.2/vhosts/># for further details before you try to setup virtual hosts.## You may use the command line option '-S' to verify your virtual host# configuration.## Use name-based virtual hosting.###NameVirtualHost *:80## VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for all requests that do not# match a ServerName or ServerAlias in any <VirtualHost> block.###<VirtualHost *:80>## ServerAdmin webmaster@dummy-host.example.com## DocumentRoot /www/docs/dummy-host.example.com## ServerName dummy-host.example.com## ServerAlias www.dummy-host.example.com## ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log## CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common##</VirtualHost>##<VirtualHost *:80>## ServerAdmin webmaster@dummy-host2.example.com## DocumentRoot /www/docs/dummy-host2.example.com## ServerName dummy-host2.example.com## ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log## CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common##</VirtualHost><VirtualHost 127.0.0.1:80>ServerName localhostDocumentRoot "D:/xampp/htdocs"</VirtualHost>NameVirtualHost *:80<VirtualHost *:80>ServerName rooksystems.no-ip.bizServerAlias rooksystems.no-ip.bizServerAdmin admin@rooksystems.no-ip.bizDocumentRoot "D:/xampp/htdocs/rooksystems"<Directory "D:/xampp/htdocs/rooksystems" >Options Indexes FollowSymLinks Includes ExecCGIAllowOverride AllOrder allow,denyAllow from all</Directory>CustomLog D:/xampp/htdocs/rooksystems/accesslog combinedErrorLog D:/xampp/htdocs/rooksystems/error.log</VirtualHost><VirtualHost *:80>ServerName superstories.no-ip.bizServerAlias wsuperstories.no-ip.bizServerAdmin admin@superstories.no-ip.bizDocumentRoot "D:/xampp/htdocs/stories"<Directory "D:/xampp/htdocs/stories" >Options Indexes FollowSymLinks Includes ExecCGIAllowOverride AllOrder allow,denyAllow from all</Directory>CustomLog D:/xampp/htdocs/stories/accesslog combinedErrorLog D:/xampp/htdocs/stories/error.log</VirtualHost><VirtualHost *:80>ServerName onebyte.no-ip.bizServerAlias onebyte.no-ip.bizServerAdmin admin@onebyte.no-ip.bizDocumentRoot "D:/xampp/htdocs/onebyte"<Directory "D:/xampp/htdocs/onebyte" >Options Indexes FollowSymLinks Includes ExecCGIAllowOverride AllOrder allow,denyAllow from all</Directory>CustomLog D:/xampp/htdocs/onebyte/accesslog combinedErrorLog D:/xampp/htdocs/onebyte/error.log</VirtualHost>and here is my windows hosts file:opyright (c) 1993-1999 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. Each# entry should be kept on an individual line. The IP address should# be placed in the first column followed by the corresponding host name.# The IP address and the host name should be separated by at least one# space.## Additionally, comments (such as these) may be inserted on individual# lines or following the machine name denoted by a '#' symbol.## For example:## 102.54.94.97 rhino.acme.com # source server# 38.25.63.10 x.acme.com # x client host127.0.0.1 localhost192.168.1.10 rooksystems.no-ip.biz192.168.1.10 superstories.no-ip.biz192.168.1.10 onebyte.no-ip.bizany ideas? thanks in advance. I have been pulling my hair out. Quote Link to comment Share on other sites More sharing options...
anwoke8204 Posted October 9, 2006 Author Share Posted October 9, 2006 just found out that I can access the subdomains/folders on my sites ie.http://rooksystems.no-ip.biz/phpbb and any of the sub folders, but I can't view/access any of the home pages. any idea as to why? Quote 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.