Mailinglist Archive: opensuse (1002 mails)

< Previous Next >
Re: [opensuse] vhosts problems {solved}
  • From: "James D. Parra" <jamesp@xxxxxxxxxxxxxxxx>
  • Date: Wed, 27 Jul 2011 15:22:24 -0700 (PDT)
  • Message-id: <444521371.1076741311805344347.JavaMail.root@mri-mail>



I have set up Apache virtualhosts for server1.ourdomain.com and
server2.ourdomain.com, but only server1 loads. There is only one local IP
address.

Each virtualhost has its own entry under, /etc/apache2/vhosts.d/. Examples
below;
~~~~~~~~~~~~~~~~~~~~~~

What was needed is to have the NameVirtualHost *:80 directive above the Include
line in httpd.conf;

NameVirtualHost *:80
Include /etc/apache2/vhosts.d/*.conf
<snip>

Now the virtual hosts work for the sub-domains.

Best,

James


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages