You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bernard chan <ni...@gmail.com> on 2005/09/02 09:26:48 UTC
[users@httpd] virtual host in apache2-further question
further question:-
1. I am trying to make cartous.com with tw.cartous.com.
a) cartous.com - works properly,
b) tw.cartous.com- showed 'tw.cartous.com could not found, please
check your name and try again".
2. My /etc/apache/sites-available/default as below:-
<VirtualHost *:80 >
ServerName cartous.com
DocumentRoot /var/www/cartous
<Directory /var/www/cartous>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80 >
ServerName tw.cartous.com
DocumentRoot /var/www/tw_cartous
<Directory /var/www/tw_cartous>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Thanx,
On 9/1/05, Bernard chan <ni...@gmail.com> wrote:
> 1) It works + Thanx.
>
>
> On 8/31/05, Joshua Slive <js...@gmail.com> wrote:
> > On 8/31/05, Davide Bianchi <da...@onlyforfun.net> wrote:
> > > Bernard chan wrote:
> > > > 1) I edited /etc/apache2/sites-available/default as below:-
> > > >
> > > > <VirtualHost _default_ *:80>
> > > > <VirtualHost _default_ *:80>
> > >
> > > You can have only ONE _default_ VHost. By definition the 'default'
> > > site is the one used when, for some reason, the server can't figure
> > > out which site is requested.
> >
> > That is almost, but not quite accurate. The _default_ virtual host is
> > used ONLY when httpd can't find a <VirtualHost> with a matching IP
> > address. It is not used as the default name-based virtual host -- the
> > first listed virtual host is used for that.
> >
> > Since the poster has NameVirtualHost *:80, the _default_ virtual host
> > will NEVER be used.
> >
> > To fix the problem, you should simply be using <VirtualHost *:80> as
> > is outlined here:
> > http://httpd.apache.org/docs/2.0/vhosts/name-based.html#using
> >
> > Joshua.
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] virtual host in apache2-further question
Posted by Nick Jones <ni...@yahoo.com>.
--- Bernard chan <ni...@gmail.com> wrote:
> further question:-
>
> 1. I am trying to make cartous.com with
> tw.cartous.com.
> a) cartous.com - works properly,
>
> b) tw.cartous.com- showed 'tw.cartous.com could
> not found, please
> check your name and try again".
>
> 2. My /etc/apache/sites-available/default as below:-
>
> <VirtualHost *:80 >
> ServerName cartous.com
> DocumentRoot /var/www/cartous
> <Directory /var/www/cartous>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> </Directory>
> </VirtualHost>
>
> <VirtualHost *:80 >
> ServerName tw.cartous.com
> DocumentRoot /var/www/tw_cartous
> <Directory /var/www/tw_cartous>
> Options Indexes FollowSymLinks
> MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> </Directory>
> </VirtualHost>
>
> Thanx,
You have a DNS error. Make sure your DNS provider has
'tw.cartous.com' pointing to your server's IP address.
-Nick
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org