Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Name-based Virtual Host Support

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Restrict access to localhost only  
Author Message
jek

External


Since: Aug 21, 2004
Posts: 4



(Msg. 1) Posted: Tue Aug 24, 2004 5:23 am
Post subject: Name-based Virtual Host Support
Archived from groups: alt>apache>configuration (more info?)

I'm stuck!
I read the docs

besides adding this:
NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
DocumentRoot /www/domain
</VirtualHost>

<VirtualHost *:80>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>
and creating the individual directories, what else?
I should be able to type either domain and have each display right?


--
Johnny Kitchens

 >> Stay informed about: Name-based Virtual Host Support 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Tue Aug 24, 2004 9:57 am
Post subject: Re: Name-based Virtual Host Support [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-08-24, Johnny Kitchens <jek RemoveThis @REMOVEjoimail.com> wrote:
 ><VirtualHost *:80>
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.domain.tld</font" target="_blank">www.domain.tld</font</a>>
 > ServerAlias domain.tld *.domain.tld
 > DocumentRoot /www/domain

You should also add a <Directory > block detailing the permissions
on /www/domain. This for every DocumentRoot and every VirtualHost.

 > and creating the individual directories, what else?

The DNS is ok? If you ping <a style='text-decoration: underline;' href="http://www.domain.tld," target="_blank">www.domain.tld,</a> does your server respond?
Did you restarted the server?

Davide

--
You can make it illegal, but you can't make it unpopular.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Name-based Virtual Host Support 
Back to top
Login to vote
jek

External


Since: Aug 21, 2004
Posts: 4



(Msg. 3) Posted: Tue Aug 24, 2004 9:57 am
Post subject: Re: Name-based Virtual Host Support [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure DeleteThis @onlyforfun.net> wrote in message
news:slrncilpqb.1hi.davideyeahsure@fogg.onlyforfun.net...
 > On 2004-08-24, Johnny Kitchens <jek DeleteThis @REMOVEjoimail.com> wrote:
  > ><VirtualHost *:80>
<font color=green>  > > ServerName <a style='text-decoration: underline;' href="http://www.domain.tld</font" target="_blank">www.domain.tld</font</a>>
  > > ServerAlias domain.tld *.domain.tld
  > > DocumentRoot /www/domain
 >
 > You should also add a <Directory > block detailing the permissions

I'm not sure onthis

 > on /www/domain. This for every DocumentRoot and every VirtualHost.
should I change them to the www? I just put them under default and named
their directory
I.E. Apache Group\Apache2\htdocs\domain
Apache Group\Apache2\htdocs\domain2
 >
  > > and creating the individual directories, what else?
 >
 > The DNS is ok? If you ping <a style='text-decoration: underline;' href="http://www.domain.tld," target="_blank">www.domain.tld,</a> does your server respond?

yes, via both domains

 > Did you restarted the server?

yes, I restarted the server
 >
 > Davide
 >
 > --
 > You can make it illegal, but you can't make it unpopular.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Name-based Virtual Host Support 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Tue Aug 24, 2004 10:55 am
Post subject: Re: Name-based Virtual Host Support [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-08-24, Johnny Kitchens <jek RemoveThis @REMOVEjoimail.com> wrote:
 > should I change them to the www? I just put them under default and named

It doesn't matter where you put them. Just be sure you mention the
correct path in the DocumentRoot directive.

 > yes, I restarted the server

Ok, so what's the error you receive when you try to load one of the
two domain?

Davide

--
Colvard's Logical Premises:
  All probabilities are 50%. Either a thing will happen or it
  won't.

Colvard's Unconscionable Commentary:
  This is especially true when dealing with someone you're
  attracted to.

Grelb's Commentary
  Likelihoods, however, are 90% against you.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Name-based Virtual Host Support 
Back to top
Login to vote
jek

External


Since: Aug 21, 2004
Posts: 4



(Msg. 5) Posted: Tue Aug 24, 2004 10:55 am
Post subject: Re: Name-based Virtual Host Support [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
news:slrncilt7g.1hi.davideyeahsure@fogg.onlyforfun.net...
 > On 2004-08-24, Johnny Kitchens <jek.RemoveThis@REMOVEjoimail.com> wrote:
  > > should I change them to the www? I just put them under default and named
 >
 > It doesn't matter where you put them. Just be sure you mention the
 > correct path in the DocumentRoot directive.
 >
  > > yes, I restarted the server
 >
 > Ok, so what's the error you receive when you try to load one of the

No error just instead of getting either of the two domains I get the folder
view of both virtual directories<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Name-based Virtual Host Support 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 6) Posted: Tue Aug 24, 2004 11:42 am
Post subject: Re: Name-based Virtual Host Support [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-08-24, Johnny Kitchens <jek.TakeThisOut@REMOVEjoimail.com> wrote:
 > No error just instead of getting either of the two domains I get the folder
 > view of both virtual directories

You miss a 'index.html' file in there or to add the 'index' file to
your DirectoryIndex directive.

Davide

--
ASHes to ASHes, DOS to DOS.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Name-based Virtual Host Support 
Back to top
Login to vote
user2676

External


Since: Feb 11, 2004
Posts: 30



(Msg. 7) Posted: Wed Aug 25, 2004 7:18 pm
Post subject: Re: Name-based Virtual Host Support [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 24 Aug 2004 06:57:08 GMT, Davide Bianchi
<davideyeahsure RemoveThis @onlyforfun.net> wrote:

 >On 2004-08-24, Johnny Kitchens <jek RemoveThis @REMOVEjoimail.com> wrote:
  >><VirtualHost *:80>
<font color=green>  >> ServerName <a style='text-decoration: underline;' href="http://www.domain.tld</font" target="_blank">www.domain.tld</font</a>>
  >> ServerAlias domain.tld *.domain.tld
  >> DocumentRoot /www/domain
 >
 >You should also add a <Directory > block detailing the permissions
 >on /www/domain. This for every DocumentRoot and every VirtualHost.
 >

can't i say something like this:

virtualDocumentRoot /var/www/%0/htdocs

<Directory /var/www/*/htdocs >
Allow from all
</Directory>

where index.html is in each htdocs ?

Or do I in deed have to make 26 blocks for 26 Virtual Domains ?


  >> and creating the individual directories, what else?
 >


frgr
Erik<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Name-based Virtual Host Support 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
name-based virtual host can't working - I have installed apache on windows system. I found the name-based virtual host can't working. is this need to config the host file? if yes, where can I to find the ref manual. Thank you!

port-based virtual host - hello, i am new to admining apache, and i am trying to set up a virtual host (which will serve as a test environment) to run on port 8081, in addition to the production host running on port 80. as per the documentation located here..

Apache Name-based Virtual Host SSL - i want to set Virtual Host SSL now i can set Basic Virtual Host not SSL like www.123.com and www.456.com but i want to set https://www.123.com and https://www.456.com too . How can i do sir ? note : i has 1 ip address on 1 server computer . thank u...

Name based virtual host issues - I am brand new to apache(v2) and am having an issue setting up name based virtual hosting. I wish to quit using IIS and move to apache. the details are as follows local machine name: TPP Domain 1: thepumas.net domain 2: galadrielle.org domain 3:..

port based virtual host wierdness - Greetings, Google and the apache docs have failed me; hopefully one of y'all can clue me in. I have apache 1.3 running on a local machine on hub behind a firewall using dhcp so there's no guarantee what the ip will be. I've used port based vitural..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]