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 FreeBSDI am having trouble creating a subdomain the rest of my virtual sites seemto 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 ipYou'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