Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: lil httpd help |
|
Author |
|
strigoi
Joined: 15 Dec 2005 Posts: 36
|
Posted: Thu 11 May '06 1:40 Post subject: lil httpd help |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 12 May '06 21:52 Post subject: |
|
|
*.pirates-paradise.com catches all subdomains. |
|
Back to top |
|
|
|
|
|
|