Re: I can't get apache to direct to my virtual hosts

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

 



I did finally work out the last bug and now apache is pointing to the correct
vhosts. I never heard the idiom "third day is the charm" but hey, if it
works... Below is he httpd-vhosts.conf file that is working

<VirtualHost *:80>
    ##ServerAdmin postmaster@xxxxxxxxxxxxxxxxxxxx
    DocumentRoot "C:/server/xampp/htdocs/"
    ServerName site1.com
    ServerAlias www.site1.com
    ##ErrorLog "logs/dummy-host.localhost-error.log"
    ##CustomLog "logs/dummy-host.localhost-access.log" combined
</VirtualHost>

<VirtualHost *:80>
    ##ServerAdmin postmaster@xxxxxxxxxxxxxxxxxxxxx
    DocumentRoot "C:/server/xampp/htdocs/site2"
    ServerName site2.com
    ServerAlias www.site2.com
    ##ErrorLog "logs/dummy-host2.localhost-error.log"
    ##CustomLog "logs/dummy-host2.localhost-access.log" combined
</VirtualHost>

The problem was that the vhost container for site1 started like <VirtualHost
localhost:80> and for site2 it was <VirtualHost *:80>.  I changed site1 to
be <VirtualHost *:80> and when I did that I knew right away that was causing
my grief. Both sites worked correctly right away.

I want to thank you for replying so fast and taking interest to help noobs
like me. I hope to gain enough experience and knowledge to help someone down
the road too.

Thanks again and take care :)
-- 
View this message in context: http://old.nabble.com/I-can%27t-get-apache-to-direct-to-my-virtual-hosts-tp30100782p30108298.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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