homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

ErrorDocument 503 based on server name (language specific 503 page)

Msg#: 4587335 posted 7:16 am on Jun 25, 2013 (gmt 0)

I want to show a maintenance page based on the servername so it show the right language. Is it possible to achieve something like this?

ServerName xxx.com
ServerAlias xxx.nl
ServerAlias xxx.it

ProxyPass ...
ProxyPassReverse ...

if xxx.com
ErrorDocument 503 http://maintenance.com/com
if xxx.nl
ErrorDocument 503 http://maintenance.com/nl
if xxx.it
ErrorDocument 503 http://maintenance.com/it
ErrorDocument 503 http://maintenance.com/default




WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4587335 posted 9:19 am on Jun 25, 2013 (gmt 0)

ErrorDocument 503 /error503.php

In the script, generate or "include" the correct information for the viewer based on the requested hostname.

NEVER specify protocol and hostname in the ErrorDocument directive. That will generate a 302 response, not the one you wanted.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved