logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Single ErrorDocument location for multiple vhosts
Author
awdboxer



Joined: 11 Feb 2010
Posts: 9

PostPosted: Fri 17 Feb '12 23:19    Post subject: Single ErrorDocument location for multiple vhosts Reply with quote

I have a dev server set up with about 80 different vhosts. I'd like to have a central location for the error documents instead of drilling down into each user's vhost, which have multiple apps, adding the files, then editing the location in the config 80 times. Is this possible?

The error doc would be outside of the vhost DocRoot.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 18 Feb '12 10:57    Post subject: Reply with quote

You can do that. Define the error document in your httpd.conf. The trick is to use a directory which you define with an alias. Define the alias also outside of the vhosts Wink
For an example see the icons alias.
Back to top
awdboxer



Joined: 11 Feb 2010
Posts: 9

PostPosted: Mon 20 Feb '12 18:17    Post subject: Reply with quote

Looks like that worked...thanks!
Back to top


Reply to topic   Topic: Single ErrorDocument location for multiple vhosts View previous topic :: View next topic
Post new topic   Forum Index -> Apache