Running 2 website off 1 IP address

Jason Carson jay-ttDcVxANFaNM656bX5wj8A at public.gmane.org
Thu Sep 7 20:06:39 UTC 2006


ok, My httpd.conf looks like this now

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "/var/www/localhost/htdocs/canuckster"
ServerName canuckster.org
<Directory "/var/www/localhost/htdocs/canuckster">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /var/www/localhost/htdocs/mmorpg
ServerName massivelymultiplayeronlineroleplayinggames.org
<Directory /var/www/localhost/htdocs/mmorpg>
allow from all
Options +Indexes
</Directory>
</VirtualHost>

However, only canuckster.org works,
massivelymultiplayeronlineroleplayinggames.org doesn't work.

> On Thu, 2006-09-07 at 15:51 -0400, Jason Carson wrote:
>
>> I am running apache 2 and this is my httpd.conf file but it doesn't seem
>> to work.
>>
>> <VirtualHost *:80>
>> DocumentRoot "/var/www/localhost/htdocs/canuckster"
>> ServerName canuckster.org
>> <Directory "/var/www/localhost/htdocs/canuckster">
>> allow from all
>> Options +Indexes
>> </Directory>
>> </VirtualHost>
>>
>> <VirtualHost *:80>
>> DocumentRoot /var/www/localhost/htdocs/mmorpg
>> ServerName massivelymultiplayeronlineroleplayinggames.org
>> <Directory /var/www/localhost/htdocs/mmorpg>
>> allow from all
>> Options +Indexes
>> </Directory>
>> </VirtualHost>
>
>
> You need a NameVirtualHost *:80 entry above those two.
>
> Also be aware that you need one IP address per SSL service. You don't
> seem to have any so you should be okay.
>
> --
> John Van Ostrand
>          Net Direct Inc.
>
> Chief Technology Officer
> 564 Weber St. N. Unit 12
>    Waterloo, ON N2L 5C6
>  map
> john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org
>         Ph: 519-883-1172
>  ext.5102
> Linux Solutions / IBM
> Hardware
>         Fx: 519-883-8533
>
>


--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wini/Mailing_lists





More information about the Legacy mailing list