Problem setting up virtual hosts with apache
Everywhere I look for apache documentation dealing with setting up virtual
hosts with apache 1.3, it is told that something like this should work:
NameVirtualHost *
Op zondag 9 februari 2003 21:51, schreef David List:
Everywhere I look for apache documentation dealing with setting up virtual hosts with apache 1.3, it is told that something like this should work:
NameVirtualHost *
# Setup for first virtual host </VirtualHost> # Setup for second virtual host </VirtualHost> When I try this, I get the following message when restarting apache:
because you did not give any settings.
I have this:
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
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:
Everywhere I look for apache documentation dealing with setting up virtual hosts with apache 1.3, it is told that something like this should work:
NameVirtualHost *
# Setup for first virtual host </VirtualHost> # Setup for second virtual host </VirtualHost> When I try this, I get the following message when restarting apache:
dt:~ # /etc/init.d/apache restart Shutting down httpd done Starting httpd [ PERL PHP4 Python ][Sun Feb 9 21:38:53 2003] [warn] NameVirtualHost *:80 has no VirtualHosts done dt:~ #
What goes wrong?
Best regards, David List
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
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:
ServerAdmin admin@yourvhost.com 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 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
participants (3)
-
David List
-
David Russell
-
Kees Bergwerf