You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Winanjaya <wi...@cbn.net.id> on 2003/09/08 11:09:12 UTC
[users@httpd] Newbie question .. please help
Dear The Expert,
I am very new with Apache .. my question is very simple:
I have 2 domains in my RH Server they are:
winceleste.com & bytel.com
My question is: is it possible for me to create two website in one RH Server? .. If possible .. could any body please inform me how to do this?
TIA
Winan
Re: [users@httpd] Newbie question .. please help
Posted by Robert Andersson <ro...@profundis.nu>.
(plain text, please)
I don't know if you solved it, but couldn't see any concluding post, so...
Winanjaya wrote:
> Hi.. It works already .. but I met different problem now, : the main
> domain is lippogeneral.com and the additional domains are winceleste.com
> and bytel.com .. my problem is why it always open winceleste.com site if I
> open the main domain (lippogeneral.com) .. ?
Obviously it didn't work, right?
This behaviour is because when Apache gets a request and it cannot match it
with a VirtualHost it will (generally) default to the first defined
VirtualHost. In your case, it's likely that Apache cannot match neither
winceleste.com nor lippogeneral.com, but as the former happens to be defined
before the latter, it always shows.
It can be due to numerous reasons. If you post the relevant portion of your
config, eg. these directives/blocks:
- Listen
- NameVirtualHost
- <VirtualHost>
... I'm sure we can help you.
Regards,
Robert Andersson
---------------------------------------------------------------------
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] Newbie question .. please help
Posted by Winanjaya <wi...@cbn.net.id>.
Hi.. It works already .. but I met different problem now, : the main domain is lippogeneral.com and the additional domains are winceleste.com and bytel.com .. my problem is why it always open winceleste.com site if I open the main domain (lippogeneral.com) .. ? hopefully you understand what I mean (sorry .. english is not my first language) ..many thanks in advance
Regards
Winan
----- Original Message -----
From: Mike Lohmann
To: Winanjaya
Sent: Tuesday, September 09, 2003 2:56 AM
Subject: Re: [users@httpd] Newbie question .. please help
Hmm. Perhaps you can send me the last line of your error_log?
When there is something like ".. using 127.0.0.1" then you have to direct your Domain to your IP by your DNS-Server. When you type in at your promt (Not on your server but on your Client (on WindowsOS = Start->Execute->cmd->enter): ping <yourdomain> which IP is listed for your domain?
But before looking for it, please send the log.
Thanks.
Mike
----- Original Message -----
From: Winanjaya
To: Mike Lohmann
Sent: Monday, September 08, 2003 12:03 PM
Subject: Re: [users@httpd] Newbie question .. please help
Thanks .. I have setted NameVirtualHost 172.16.1.3:80 .. but it gave me warning .. NameVirtualHost 172.16.1.3:80 NoVirtualHost ..
any idea?
TIA
Winan
----- Original Message -----
From: Mike Lohmann
To: users@httpd.apache.org ; Winanjaya
Sent: Monday, September 08, 2003 4:29 PM
Subject: Re: [users@httpd] Newbie question .. please help
Hi,
you can do it with Virtual Hosts:
<VirtualHost <your IP>:80>
ServerName www.you.com
ServerAlias you.com
DocumentRoot "/var/www/you"
ServerAdmin admin@you.com
CustomLog /var/log/apache/access_log_you.com combined
</VirtualHost>
<VirtualHost <your IP>:80>
ServerName www.you2.com
ServerAlias you2.com
DocumentRoot "/var/www/you2"
ServerAdmin admin@you2.com
CustomLog /var/log/apache/access_log_you2.com combined
</VirtualHost>
Make sure that NameVirtualHost is set to your server's IP:
NameVirtualHost <your IP>:80
I hope I could help...
Mike
----- Original Message -----
From: Winanjaya
To: users@httpd.apache.org
Sent: Monday, September 08, 2003 11:09 AM
Subject: [users@httpd] Newbie question .. please help
Dear The Expert,
I am very new with Apache .. my question is very simple:
I have 2 domains in my RH Server they are:
winceleste.com & bytel.com
My question is: is it possible for me to create two website in one RH Server? .. If possible .. could any body please inform me how to do this?
TIA
Winan
Re: [users@httpd] Newbie question .. please help
Posted by Mike Lohmann <mi...@werkler.de>.
Hi,
you can do it with Virtual Hosts:
<VirtualHost <your IP>:80>
ServerName www.you.com
ServerAlias you.com
DocumentRoot "/var/www/you"
ServerAdmin admin@you.com
CustomLog /var/log/apache/access_log_you.com combined
</VirtualHost>
<VirtualHost <your IP>:80>
ServerName www.you2.com
ServerAlias you2.com
DocumentRoot "/var/www/you2"
ServerAdmin admin@you2.com
CustomLog /var/log/apache/access_log_you2.com combined
</VirtualHost>
Make sure that NameVirtualHost is set to your server's IP:
NameVirtualHost <your IP>:80
I hope I could help...
Mike
----- Original Message -----
From: Winanjaya
To: users@httpd.apache.org
Sent: Monday, September 08, 2003 11:09 AM
Subject: [users@httpd] Newbie question .. please help
Dear The Expert,
I am very new with Apache .. my question is very simple:
I have 2 domains in my RH Server they are:
winceleste.com & bytel.com
My question is: is it possible for me to create two website in one RH Server? .. If possible .. could any body please inform me how to do this?
TIA
Winan
Re: [users@httpd] Newbie question .. please help
Posted by Leif W <wa...@usa.net>.
Try reading the docs regarding Virtual Hosting. Apache 1.3.x
http://httpd.apache.org/docs/ and Apache 2.0.x
http://httpd.apache.org/docs-2.0/ .
Leif
----- Original Message -----
From: Winanjaya
To: users@httpd.apache.org
Sent: Monday, September 08, 2003 5:09 AM
Subject: [users@httpd] Newbie question .. please help
Dear The Expert,
I am very new with Apache .. my question is very simple:
I have 2 domains in my RH Server they are:
winceleste.com & bytel.com
My question is: is it possible for me to create two website in one RH
Server? .. If possible .. could any body please inform me how to do this?
TIA
Winan
---------------------------------------------------------------------
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