homepage Welcome to WebmasterWorld Guest from 54.235.36.164
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
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)
chitech




msg:4587337
 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?


<VirtualHost>
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
else
ErrorDocument 503 http://maintenance.com/default

</VirtualHost>

 

g1smd




msg:4587354
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved