Only one subdomain to a virtual host

This is a discussion on Only one subdomain to a virtual host within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I've a virtual hosting ServerName example.com ServerAlias *.example.com This is the first virtual hosting, therefor the ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-18-2003
Florian Lindner
 
Posts: n/a
Default Only one subdomain to a virtual host

Hello,
I've a virtual hosting

ServerName example.com
ServerAlias *.example.com

This is the first virtual hosting, therefor the standard one.
But I want to introduce another virtual hosting on a subdomain from
example.com, but I still want to keep this v-host as the standard.
How can I do that?
Thx,
Florian

--
Abkürzung unbekannt?
++ http://www.xgm.de +++
  #2 (permalink)  
Old 08-18-2003
Davide Bianchi
 
Posts: n/a
Default Re: Only one subdomain to a virtual host

Florian Lindner <Florian.Lindner@xgm.de> wrote:
> ServerName example.com
> ServerAlias *.example.com


> How can I do that?


In the <VirtualHost > directive add _default_, remove the *.example.com
as Alias (otherwise it will catch everything) and add another <VirtualHost>
directive _without_ the _default_ option.

See the documentation on www.apache.org

Davide
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0