https://issues.apache.org/bugzilla/show_bug.cgi?id=45726
--- Comment #1 from rahul <[EMAIL PROTECTED]> 2008-09-02 05:37:34 PST --- You can do this by asking apache to run with a different configu file. see see http://www.dotcomunderground.com/blogs/2006/08/31/return-503-status-with-apache-webserver/ e.g |cat maintenance.conf Listen 8080 ServerName agneyam ScriptAlias / 503.sh/ |cat 503.sh #!/bin/sh cat <<EOF status: 503 Content-Type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>503 - Service temporary unavailable</title> </head> <body> <h1>503 - Service temporary unavailable</h1> <p>Sorry, this website is currently down for maintenance please retry in a few minutes</p> </body> </html> EOF |./bin/httpd -f ./maintenance.conf |echo "GET / HTTP/1.0\r\n\r\n" | nc 0 8080 HTTP/1.1 503 Service Temporarily Unavailable Date: Tue, 02 Sep 2008 12:21:52 GMT Server: Apache/2.2.9 (Unix) Connection: close Content-Type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>503 - Service temporary unavailable</title> </head> <body> <h1>503 - Service temporary unavailable</h1> <p>Sorry, this website is currently down for maintenance please retry in a few minutes</p> </body> </html> |echo "GET /abc?def HTTP/1.0\r\n\r\n" | nc 0 8080 HTTP/1.1 503 Service Temporarily Unavailable Date: Tue, 02 Sep 2008 12:21:57 GMT Server: Apache/2.2.9 (Unix) Content-Length: 284 Connection: close Content-Type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>503 - Service temporary unavailable</title> </head> <body> <h1>503 - Service temporary unavailable</h1> <p>Sorry, this website is currently down for maintenance please retry in a few minutes</p> </body> </html> -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
