httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] huge config file & e404 page on different server
Date Fri, 10 Aug 2007 15:33:25 GMT
On 8/10/07, Samuel Vogel <samy-delux@gmx.de> wrote:
> Hey,
> > It will make startup and restarts slower and will increase the memory
> > usage somewhat. There will also be some effect on run-time
> > performance, but it probably won't be too big.
> >
> > What exactly is it about the vhost config that is too complicated for
> > dynamic vhosts? Some things can be worked around using mod_rewrite
> > instead of mod_vhost_alias.
> >
> I use mod_cband and also have to set some php options...

Well, my guess is that the performance hit from using mod_cband (which
needs to lock/read/write a text database on every request) is
significantly bigger than the performance hit from simply adding a
vhost section.

>
> > That's because if the error page isn't on the same server that
> > actually has the error, the server must send a redirect to the client.
> > Therefore if you want to deliver the proper response code, the error
> > page must be in the namespace of the server with the error. If that is
> > a problem, you can use ProxyPass to bring a document from the Master
> > Server into the namespace of the other servers.

> What do you mean by namespace? The Error document is not on the same
> server but under the same domain.

If the server is going to deliver the error text without a redirect,
the error text must be available on the same server.

> How would I use ProxyPass specifically to do this?

ErrorDocument 404 /errors/404.html
ProxyPass /errors/404.html http://othersite.example.com/errors/404.html

Joshua.

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message