Mailinglist Archive: opensuse (3103 mails)
| < Previous | Next > |
Re: [SLE] Problem setting up virtual hosts with apache
- From: David List <david@xxxxxxxxxxxx>
- Date: Thu, 13 Feb 2003 17:23:30 +0100
- Message-id: <200302131723.30722.david@xxxxxxxxxxxx>
On Sunday 09 February 2003 22:22, David Russell wrote:
> Hi David,
>
> not sure if you're really just putting what you described ("# Setup for
> first virtual host ") in your virtual host containers, but here's an
> example of a working one:
>
> <VirtualHost *>
> ServerAdmin admin@xxxxxxxxxxxxx
> DocumentRoot /where/you_keep/html
> ServerName yourvhost.com
> ServerAlias www.yourvhost.com
> ErrorLog /var/log/httpd/yourvhost-error_log
> CustomLog /var/log/httpd/yourvhost-access_log common
> <Directory /where/you_keep/html>
> Options FollowSymLinks
> order allow,deny
> allow from all
> </Directory>
> </VirtualHost>
I did have content in the VirtualHost directive, I just didn't include it to
save space. The difference was that I had specified LAN-address in the
NameVirtualHost directive and specified server name in the individual
VirtualHost directives. I tried wildcarding those two different directives,
and it seems to work now.
Thank you for your answer.
Best regards,
David List
> Hi David,
>
> not sure if you're really just putting what you described ("# Setup for
> first virtual host ") in your virtual host containers, but here's an
> example of a working one:
>
> <VirtualHost *>
> ServerAdmin admin@xxxxxxxxxxxxx
> DocumentRoot /where/you_keep/html
> ServerName yourvhost.com
> ServerAlias www.yourvhost.com
> ErrorLog /var/log/httpd/yourvhost-error_log
> CustomLog /var/log/httpd/yourvhost-access_log common
> <Directory /where/you_keep/html>
> Options FollowSymLinks
> order allow,deny
> allow from all
> </Directory>
> </VirtualHost>
I did have content in the VirtualHost directive, I just didn't include it to
save space. The difference was that I had specified LAN-address in the
NameVirtualHost directive and specified server name in the individual
VirtualHost directives. I tried wildcarding those two different directives,
and it seems to work now.
Thank you for your answer.
Best regards,
David List
| < Previous | Next > |