Monkey Daemon wrote:
I'm looking into our options going forward for our web-hosting cluster.
We're currently running Zeus Web Server using sub servers.
The idea behind webservers is that you can have a directory layout that
looks like:
/var/www/%HOSTING-PACKAGE-TYPE%/%x%/%x%/%domain-name.tld/html/
and the webserver does a lookup for the files in the html directory for
each request it recieves. In the above example, that would mean that
for www.icanhazcheezburger.com <http://www.icanhazcheezburger.com> [0]
hosted on a Designer Hosting package, the path would expand to
/var/www/DesignerHosting/i/c/icanhazcheezburger.com/html/
<http://icanhazcheezburger.com/html/>
I know that you can do a similar thing with vhosts, however we need to
be able to set different options for each of our hosting packages and I
don't appear to be able to specify the package-type restrictions, just
server wide which is no good for our hosting platform.
If someone can point me in the direction of the correct module(s) to use
for this, I'd be very greatful.
I set up a system very similar to what you're describing in a past job.
I used mod_rewrites RewriteMap option with the "prg" MapType.
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemap
iirc we used suphp to make the perl/php scripts run as the owner of the
file.
What differences are there between your different hosting packages that
would require vhost level configuration? Perhaps you could set up one
virtualhost for each hosting package and stick them on different IPs?
[0] Sadly this domain is not hosted with us, but it seemed like a good
example domain to use!
According to RFC 2606 it's best practice to use one of the following
domains when you need examples:
example.com
example.org
example.net
See http://www.rfc-editor.org/rfc/rfc2606.txt for more information.
--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]