Re: [users@httpd] vitual subdomain problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have commented out the default host and have this setting in my config file if i set it * i get a bunch of overlap warnings as my vhosts.conf file uses the ipaddress not the star i think?

But still get the default site when i try to load site1.computerking.ca

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
NameVirtualHost 68.146.204.152:80
########NameVirtualHost 68.146.204.152:80



----- Original Message ----- From: "Joshua Slive" <joshua@xxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Friday, August 25, 2006 3:12 PM
Subject: Re: [users@httpd] vitual subdomain problems


On 8/25/06, RYAN vAN GINNEKEN <luck@xxxxxxxxxxxxxxx> wrote:



Using Apache/1.3.34 (Unix) PHP/4.4.2 configured with 4.11-STABLE FreeBSD

I am having trouble creating a subdomain the rest of my virtual sites seem
to work.

THE problem is that everytime i try to view the content for
site1.computerking.ca i get the content from www.computerking.ca which is
the default site.

pretty sure my dns works as i can ping and get the right ip

You're trying to do name-based virtual hosting, which means you don't
want a _default_ virtual host, but you do want a NameVirtualHost
directive.  See:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html

Joshua.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux