apache2

Vram lamsokvr at xprt.net
Wed Jun 1 03:26:46 UTC 2005


Hi

I  am trying to set up Multiple Domains with one IP...

I am using apache2...

And I followed the example that come with the doc....

It dosen;t seen to work


#####################  I copied this from the Apache2 doc..
##############They don't use httpd.conf
####### I put this in /etc/apache2/site-enabled/default
##########Didn't work...

For example, suppose that you are serving the domain www.domain.tld and 
you wish to add the virtual host www.otherdomain.tld, which points at 
the same IP address. Then you simply add the following to httpd.conf:

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>


########### I did all the stuff to try the example
############# made directories.
#############did entries in /etc/hosts
##############All that stuff




Any ideas on how to fix this

Or if you are running apache2  ... How do  you do virtual domains??

TIA

Vram




More information about the ubuntu-users mailing list