Networking Forums

Networking Forums > Computer Networking > Linux Networking > Apache Virtual Server

Reply
Thread Tools Display Modes

Apache Virtual Server

 
 
Leslie Roger
Guest
Posts: n/a

 
      07-21-2004, 06:15 AM
Hello,

Could anyone help me with apache virtual server? I have setup the server
with 3 domain mapped to one IP Address. When I browse it only show me the
main domain web page, the rest goes to default apache page. Could there be
a problem with the documentroot?

I would appreciate if someone could give me a sample configuration.


Regards

Leslie


 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      07-21-2004, 08:44 AM
Leslie Roger <(E-Mail Removed)> wrote:
> with 3 domain mapped to one IP Address. When I browse it only show me the
> main domain web page, the rest goes to default apache page. Could there be
> a problem with the documentroot?


No, it's almost certainly a problem in the configuration of you
VirtualHosts. Note: the 'example' configuration in httpd.conf DOES
work. See the documentation of Apache related to VirtualHosts, what
you describe is usually due to mixup between IPs and Name based virtua
hosts.

Davide

--
| Rules: (1) The boss is always right. (2) When the boss is wrong,
| refer to rule 1.
|
|
 
Reply With Quote
 
Dan
Guest
Posts: n/a

 
      07-21-2004, 11:59 AM
On Wed, 21 Jul 2004 14:15:18 +0800, "Leslie Roger" <(E-Mail Removed)>
wrote:


Something like the following works for me:


NameVirtualHost *

<VirtualHost *>
ServerName your-domain.com
ServerAlias www.your-domain.com
DocumentRoot "/var/www/html/your-domain"

<Directory "/var/www/html/your-domain">
Options FollowSymLinks
AllowOverride None
</Directory>

</VirtualHost>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Web Server [ECF]Juggernaut Linux Networking 4 05-10-2007 07:34 PM
Apache virtual hosts not resolving correctly Ninjak on FW Linux Networking 5 01-12-2007 12:56 PM
how to run php tag in apache server Simon Lee Linux Networking 1 02-14-2006 06:02 AM
SSL certificates on Apache Virtual Servers KM Linux Networking 6 10-04-2005 08:28 PM
Apache Virtual Hosts Rich Grise Linux Networking 6 12-25-2004 10:45 PM



1 2 3 4 5 6 7 8 9 10 11