cluce Posted August 9, 2007 Share Posted August 9, 2007 I have a stand alone PC that is running apache and the computer name is osiweb. I have this server on a local domain so we can test the websites via web on our internal network. I have virtual hosts set up on three websites but only my default/virtual website shows up. here are my settings:C:\Documents and Settings\Administrator.DOMAIN1>httpd -S VirtualHost configuration: Syntax OK C:\Documents and Settings\Administrator.DOMAIN1>httpd -S VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost default server kilopak.com (C:/www/Apache22/conf/httpd.conf:193) port 80 namevhost kilopak.com (C:/www/Apache22/conf/httpd.conf:193) port 80 namevhost awi.com (C:/www/Apache22/conf/httpd.conf:212) port 80 namevhost reagan.com (C:/www/Apache22/conf/httpd.conf:231) Syntax OK C:\Documents and Settings\Administrator.DOMAIN1> ---------------------------------------------- Can I access these websites like this? If so, this is not working. only kilopak shows up which seems to be the default server. http://osiweb/www/vhosts/kilopak http://osiweb/www/vhosts/reagan http://osiweb/www/vhosts/awi Or do I need to give them local domain names so I can access them? Quote Link to comment Share on other sites More sharing options...
trq Posted August 9, 2007 Share Posted August 9, 2007 Your using the same domain name for each site so you do not even need to have vhosts. If you did want to use a different domain for each vhost you would also need to setup a local DNS server so that each domain points to the same ip. Quote Link to comment Share on other sites More sharing options...
cluce Posted August 9, 2007 Author Share Posted August 9, 2007 yea, my netwrok admin says something like that we needed to point to each website. well when I use directories for each website they all dont view properly, only my default website does. The websites that are not the default shows each web file in a list through the browser like a file server and when I click on that web file the page does show but the links on that page get broken and does not show up at all when I click on them. Quote Link to comment Share on other sites More sharing options...
cluce Posted August 9, 2007 Author Share Posted August 9, 2007 Finally.........I have three of my websites somewhat working with the multiple directory way. I have 4 websites. They all have an index page. One of them pulls up like a normal website. two of them list the contents/web files and you have to click on the index file to start previewing the website like you normally would. But one website lists the contents and when you click on the index page the links within that index page dont work they seem to be broken. I am not sure why? Quote Link to comment Share on other sites More sharing options...
cluce Posted August 9, 2007 Author Share Posted August 9, 2007 I think I know why that one web site dont work its because of the code in the web pages for that site. 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.