Jump to content

a straight forward question about accessing multiple websites via web


cluce

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.