httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Moreira <luis.more...@esinnovation.pt>
Subject Re: [users@httpd] Virtual Host trouble
Date Thu, 11 Nov 2004 11:51:56 GMT
I believe this will solve your problem

NameVirtualHost *:80

<VirtualHost *>
ServerName www.jacklemon.com
DocumentRoot /var/www/html
<Directory "/var/www/cgi-bin/openwebmail/">
</directory>
ScriptAlias /webmail "/var/www/cgi-bin/openwebmail/openwebmail.pl"
Alias /data "/var/www/data"
</VirtualHost>

<VirtualHost *>
    ServerAdmin matthew@jacklemon.com
    DocumentRoot /var/www/alcatraz
    ServerName alcatraz.jacklemon.com
</VirtualHost>


BTW, you have an empty "directory" directive in the first VH


Luis



Lemon, Matt wrote:

>Hi,
>
>I've read the documentation on apache 2 but I still can't seem to get this to work.  I
have one main website that was the default and decided to add a 2nd website on the same IP
and use a virtual host.  This broke both the websites and I then read the manual which told
me to add the original website as a virtual.  I've done that and now my original site works
but the 2nd one doesn't.
>
>
>This is the relevant part of httpd.conf that I've changed showing the two virtual hosts:
>
>
>NameVirtualHost 10.2.15.89:80
>
><VirtualHost _default_:80>
>ServerName www.jacklemon.com
>DocumentRoot /var/www/html
><Directory "/var/www/cgi-bin/openwebmail/">
></directory>
>ScriptAlias /webmail "/var/www/cgi-bin/openwebmail/openwebmail.pl"
>Alias /data "/var/www/data"
></VirtualHost>
>
><VirtualHost *:80>
>    ServerAdmin matthew@jacklemon.com
>    DocumentRoot /var/www/alcatraz
>    ServerName alcatraz.jacklemon.com
></VirtualHost>
>
>Any help gratefully appreciated :)
>
>Thanks,
>
>Matt
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.794 / Virus Database: 538 - Release Date: 10/11/2004
> 
>#####################################################################################
>
>CONFIDENTIALITY
>
>This e-mail is confidential and is intended exclusively for the person(s) named above.
 
>If it has been delivered to you by mistake, please notify the sender or 
>info@williamfry.ie and then delete this e-mail.  You should not distribute or 
>re-transmit this e-mail or disclose its contents to any other person.  
>
>Thank you for your co-operation.  
>
>
>#####################################################################################
>
>---------------------------------------------------------------------
>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
>
>
>  
>

Mime
View raw message