This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > October 2004 > different domains > different sites ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author different domains > different sites ?
CKY

2004-10-15, 9:09 pm

Ok, i got two different domains (wich are: a1b1.hopto.org and
a2b2.hopto.org) leading to the same folder: C:\Program Files\Apache
Group\Apache2\htdocs

inside that folder i have two different sites
1.html
and
2.html

What do I have to configure now to have a different site popup as its
url is entered in the browser?
David Dorward

2004-10-15, 9:09 pm

CKY wrote:

> What do I have to configure now to have a different site popup as its
> url is entered in the browser?


http://httpd.apache.org/docs-2.0/vhosts/name-based.html

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
CKY

2004-10-15, 9:09 pm

> http://httpd.apache.org/docs-2.0/vhosts/name-based.html

Ok, I read the file but my httpd.conf still looks like this:

#<VirtualHost a1b1.hopto.org:80>
# ServerAdmin CharmsDelight@sbcglobal.net
# DocumentRoot
# ServerName http:\\a1b1.hopto.org
# ErrorLog logs/a1b1.hopto.org-error_log
# CustomLog logs/a1.b1.hopto.org-access_log common
#</VirtualHost>

#<VirtualHost a2b2.hopto.org:82>
# ServerAdmin CharmsDelight@sbcglobal.net
# DocumentRoot
# ServerName http:\\a2b2.hopto.org
# ErrorLog logs/a2b2.hopto.org-error_log
# CustomLog logs/a2b2.hopto.org-access_log common
#</VirtualHost>

Notice that I left the document root empty because no matter what I
type, the website path
does not change.
I am trying to have a default webpage for both websites. My htdocs
folder has two folders
in it: A and B. Each filder has a default webpage: index.htm. So what
would be the correct
Path to type in the ducumentroot section?
Robin Strahan

2004-10-15, 9:09 pm

Remove the comment tags. i.e. remove the #'s. Then add the DocumentRoot.
"CKY" <Charmsdelight@sbcglobal.net> wrote in message
news:8587e9df.0410130550.4575f81d@posting.google.com...
>
> Ok, I read the file but my httpd.conf still looks like this:
>
> #<VirtualHost a1b1.hopto.org:80>
> # ServerAdmin CharmsDelight@sbcglobal.net
> # DocumentRoot
> # ServerName http:\\a1b1.hopto.org
> # ErrorLog logs/a1b1.hopto.org-error_log
> # CustomLog logs/a1.b1.hopto.org-access_log common
> #</VirtualHost>
>
> #<VirtualHost a2b2.hopto.org:82>
> # ServerAdmin CharmsDelight@sbcglobal.net
> # DocumentRoot
> # ServerName http:\\a2b2.hopto.org
> # ErrorLog logs/a2b2.hopto.org-error_log
> # CustomLog logs/a2b2.hopto.org-access_log common
> #</VirtualHost>
>
> Notice that I left the document root empty because no matter what I
> type, the website path
> does not change.
> I am trying to have a default webpage for both websites. My htdocs
> folder has two folders
> in it: A and B. Each filder has a default webpage: index.htm. So what
> would be the correct
> Path to type in the ducumentroot section?



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com