This is a discussion on different domains > different sites ? within the Windows Web Servers forums, part of the Web Server and Related Forums category; Ok, i got two different domains (wich are: a1b1.hopto.org and a2b2.hopto.org) leading to the same folder: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
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 |
|
|||
|
> 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? |
|
|||
|
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.c om... >> 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? |
| Thread Tools | |
| Display Modes | |
|
|