You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/11/15 12:34:20 UTC

[Bug 40441] intelligently handling dynamic subdomains

https://issues.apache.org/bugzilla/show_bug.cgi?id=40441

--- Comment #4 from Dean Trower <a1...@rmqkr.net> ---
Could some additional syntax be implemented for this command?

In addition to simply *copying* part of the server name or IP into the document
root, it would be useful if you could INSTEAD choose to select between several
predefined document roots based on tests applied to the server name.

i.e. something like:

%1=subdomain1: /webhome/firstsubdomain
%1=subdomain2: /otherplace/secondsubdomain
default:       /webhome/www


So the urls "subdomain1.example.com" and "subdomain2.example.com" would map to
/webhome/firstsubdomain and /otherplace/secondsubdomain respectively, whilst
anything else (e.g. example.com, www.example.com, xyz.example.com) would map to
/webhome/www.


This would give you the flexibility to give specific subdomains separate
document roots in the filesystem, without locking the filesystem directory
structure to the domain name.  It also ensures that only known, prespecified
directories get used as the document root (which might help avoid some security
problems if the server's directory structure is set up carelessly).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org