El Mon, 02 Oct 2006 21:21:55 -1000
Ben Munat <[EMAIL PROTECTED]> dijo:

> Hello. Does anyone know how I can configure apache 2.0.x to map all 
> requests to a given subdomain to a give directory regardless of the
> rest of the server name?

<VirtualHost *:80>
        ServerName domain.com
        ServerAlias www.domain.com
        ServerAlias webmail.domain.com
        ServerAlias ...
        ServerAdmin ...
        DocumentRoot "..."
        ...
</VirtualHost>

The same applies for SSL ports.

No mod_rewrite needed for that.

-- 
echo "dpefsAgmv{p/psh" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
GnuPG key ID 0x6D2FF8B5 @ pgp.rediris.es
Gentoo Linux on IA32|sparc64
http://fluzo.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to