Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Single ErrorDocument location for multiple vhosts |
|
Author |
|
awdboxer
Joined: 11 Feb 2010 Posts: 9
|
Posted: Fri 17 Feb '12 23:19 Post subject: Single ErrorDocument location for multiple vhosts |
|
|
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
|
Posted: Sat 18 Feb '12 10:57 Post subject: |
|
|
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
For an example see the icons alias. |
|
Back to top |
|
awdboxer
Joined: 11 Feb 2010 Posts: 9
|
Posted: Mon 20 Feb '12 18:17 Post subject: |
|
|
Looks like that worked...thanks! |
|
Back to top |
|
|
|
|
|
|