Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to   
Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Windows > different domains > different sites ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    different domains > different sites ?  
CKY


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:09 AM

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?





[ Post a follow-up to this message ]



    Re: different domains > different sites ?  
David Dorward


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:09 AM

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





[ Post a follow-up to this message ]



    Re: different domains > different sites ?  
CKY


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:09 AM

> 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?





[ Post a follow-up to this message ]



    Re: different domains > different sites ?  
Robin Strahan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:09 AM

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?







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:52 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Back To The Top
Home | Usercp | Faq | Register