logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.


Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: lil httpd help
Author
strigoi



Joined: 15 Dec 2005
Posts: 36

PostPosted: Thu 11 May '06 1:40    Post subject: lil httpd help Reply with quote

ok guys, im back..

trying to get vhost setup the way i want, i have 2 domain names, and i want apache to serve the subdomains from different folders, heres my vhost

Code:

NameVirtualHost *:80

<VirtualHost *:80>
    ServerName pirates-paradise.com:80
    ServerAlias pirates-paradise.com  *.pirates-paradise.com
    DocumentRoot "c:/program files/apache group/apache2/htdocs/forum"
</VirtualHost>

<VirtualHost *:80>
    ServerName shadow.pirates-paradise.com:80
    ServerAlias shadow.pirates-paradise.com
    DocumentRoot "c:/program files/apache group/apache2/htdocs/shadow"
</VirtualHost>

<VirtualHost *:80>
    ServerName pirates-paradise.org:80
    ServerAlias pirates-paradise.org *.pirates-paradise.org
    DocumentRoot "c:/program files/apache group/apache2/htdocs/org"
</VirtualHost>


now whats happening, is that anything comming in on shadow.pirates-paradise.com is going to c:/program files/apache group/apache2/htdocs/forum, when i need it to go to c:/program files/apache group/apache2/htdocs/shadow.

id like to host a few sites for buddies of mine, and ive read many vhosts articles online, but yet the problem remains.

pirates-paradise.com works fine
pirates-paradise.org works fine
each served from a separate folder as you can see in the vhost directives, so what am i doing wrong ??
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7104
Location: Germany, Next to Hamburg

PostPosted: Fri 12 May '06 21:52    Post subject: Reply with quote

*.pirates-paradise.com catches all subdomains.
Back to top


Reply to topic   Topic: lil httpd help View previous topic :: View next topic
Post new topic   Forum Index -> Apache