spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf | 9 +
web/html/errors/403.html | 140 ++++++++++++++++
web/html/errors/404.html | 123 ++++++++++++++
web/html/errors/413.html | 131 ++++++++++++++
web/html/errors/500.html | 135 +++++++++++++++
web/html/errors/error.html | 134 ---------------
6 files changed, 538 insertions(+), 134 deletions(-)
New commits:
commit 7d726b8f00efc4a7c19e344fddf9d758532da1e1
Author: Shannon Hughes <shughes(a)redhat.com>
Date: Tue Jun 2 15:38:28 2009 -0400
500709 - html error code page support for sessionless bots
diff --git a/spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf
b/spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf
index 3e49b75..930ec30 100644
--- a/spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf
+++ b/spacewalk/config/etc/httpd/conf.d/zz-spacewalk-www.conf
@@ -17,10 +17,19 @@ PerlPassEnv NLS_LANG
PerlOptions +GlobalRequest
+# generic html; no session for vulnerability bots
+ErrorDocument 403 /errors/403.html
+ErrorDocument 404 /errors/404.html
+ErrorDocument 413 /errors/413.html
+ErrorDocument 500 /errors/500.html
+
+
+<Directory /var/www/html/network>
ErrorDocument 403 /errors/permission.pxt
ErrorDocument 404 /errors/404.pxt
ErrorDocument 413 /errors/413.pxt
ErrorDocument 500 /errors/500.pxt
+</Directory>
AddType text/pxt .pxt
<Files *.pxt>
diff --git a/web/html/errors/403.html b/web/html/errors/403.html
new file mode 100644
index 0000000..530c7f9
--- /dev/null
+++ b/web/html/errors/403.html
@@ -0,0 +1,140 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
lang="en"><head>
+<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
+ <title>Error</title>
+ <link rel="shortcut icon" href="/img/favicon.ico">
+ <link rel="stylesheet" href="/css/rhn-base.css"
type="text/css">
+ <!--[if IE]>
+ <link rel="stylesheet" type="text/css"
href="/css/rhn-iecompat.css" />
+ <![endif]-->
+ <script src="/javascript/prototype-1.js"></script>
+
+
+
+ </head><body><div class="wrap" id="top-wrap">
+
+
+
+
+
+
+<div id="utility">
+ <div id="utilityLinks">
+<p id="linx"><span
class="hide"><strong>Shortcuts:</strong> </span><a
href="http://kbase.redhat.com/">Knowledgebase</a> <span
class="navPipe">|</span> <a
href="https://scooby.rdu.redhat.com/help">Documentation</...
+ </div>
+ <div id="utilityAccount">
+
+ </div>
+
+</div>
+
+<div id="header">
+ <a href="/"><img src="/img/logo.png" id="rhnLogo"
height="52" width="228"></a>
+ <div id="searchbar">
+ <div id="searchbarinner">
+ <form name="form1" action="/rhn/Search.do"
method="get">
+ <select name="search_type">
+
+ <option value="systems">Systems</option>
+
+ <option value="packages">Packages</option>
+ <option value="errata">Errata</option>
+ <option value="docs">Documentation</option>
+ </select><input name="search_string" maxlength="40"
size="20" type="text">
+
+ <input name="submitted" value="true"
type="hidden">
+ <input class="button" name="image-1"
value="Search" type="submit" align="top"></form>
+ </div>
+ </div>
+</div>
+
+<div id="navWrap">
+<div id="mainNavWrap">
+
+
+<ul>
+<li id="mainFirst-active"><a href="/">Sign
In</a></li>
+
+<li id="mainLast"><a href="/help/about.pxt"
class="mainLastLink">About</a></li>
+</ul>
+</div><!-- end mainNavWrap -->
+</div><!-- end navWrap -->
+
+
+
+
+
+
+
+
+<div id="bar">
+
+<div id="systembar">
+<div id="systembarinner">
+
+
+
+
+
+
+<div>
+
+</div>
+
+
+</div>
+</div>
+
+</div>
+<!-- close bar -->
+
+
+
+
+ </div>
+ <div class="wrap" id="bottom-wrap">
+ <div id="content">
+ <table width="100%" cellspacing="0">
+ <tbody><tr>
+ <td class="sidebar">
+
+
+<div id="sidenavp"><ul></ul>
+</div>
+
+ </td>
+ <td class="page-content" width="100%">
+
+
+ <h1>Permission Error</h1>
+<p>You do not have the appropriate permission set to access the requested page.
You may have reached this error page in one of several ways:</p>
+ <ol>
+ <li>You are using Konqueror 3.0, which does not handle form
+ variables properly in all cases. Continuing to use Konqueror 3.0
+ will have unexpected results. If you are using Konqueror 3.0,
+ please use another browser.</li>
+ <li>Your login session has expired. For security reasons, Red Hat
+ Network terminates your login session after 15 minutes of
+ inactivity. To sign in again, click <a
href="/">here</a>.
+ </li>
+ <li>You've found an error in our site. Please contact your Support
representative with details of how you received this message.</li>
+ <li>Your browser does not have cookies enabled. The Red
+ Hat Network requires cookies in order to function; if you
+ have disabled them, please re-enable them to use the site.
+ </li>
+ <li>You've done something naughty. Stop it.</li>
+ </ol>
+
+
+ </td>
+ </tr>
+ </tbody></table>
+
+ <div id="footer">
+ Copyright © 2002-08 Red Hat, Inc. All rights reserved. <a
href="https://www.redhat.com/legal/privacy_statement.html">P...
statement</a> : <a
href="http://www.redhat.com/legal/legal_statement.html">Legal
statement</a> : <a
href="http://www.redhat.com/">redhat.com</a>
+ </div>
+
+ </div> <!-- close content -->
+ </div> <!-- close wrap -->
+
+ </body></html>
diff --git a/web/html/errors/404.html b/web/html/errors/404.html
new file mode 100644
index 0000000..b7b489a
--- /dev/null
+++ b/web/html/errors/404.html
@@ -0,0 +1,123 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
lang="en"><head>
+<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
+ <title>Error</title>
+ <link rel="shortcut icon" href="/img/favicon.ico">
+ <link rel="stylesheet" href="/css/rhn-base.css"
type="text/css">
+ <!--[if IE]>
+ <link rel="stylesheet" type="text/css"
href="/css/rhn-iecompat.css" />
+ <![endif]-->
+ <script src="/javascript/prototype-1.js"></script>
+
+
+
+ </head><body><div class="wrap" id="top-wrap">
+
+
+
+
+
+
+<div id="utility">
+ <div id="utilityLinks">
+<p id="linx"><span
class="hide"><strong>Shortcuts:</strong> </span><a
href="http://kbase.redhat.com/">Knowledgebase</a> <span
class="navPipe">|</span> <a
href="https://scooby.rdu.redhat.com/help">Documentation</...
+ </div>
+ <div id="utilityAccount">
+
+ </div>
+
+</div>
+
+<div id="header">
+ <a href="/"><img src="/img/logo.png" id="rhnLogo"
height="52" width="228"></a>
+ <div id="searchbar">
+ <div id="searchbarinner">
+ <form name="form1" action="/rhn/Search.do"
method="get">
+ <select name="search_type">
+
+ <option value="systems">Systems</option>
+
+ <option value="packages">Packages</option>
+ <option value="errata">Errata</option>
+ <option value="docs">Documentation</option>
+ </select><input name="search_string" maxlength="40"
size="20" type="text">
+
+ <input name="submitted" value="true"
type="hidden">
+ <input class="button" name="image-1"
value="Search" type="submit" align="top"></form>
+ </div>
+ </div>
+</div>
+
+<div id="navWrap">
+<div id="mainNavWrap">
+
+
+<ul>
+<li id="mainFirst-active"><a href="/">Sign
In</a></li>
+
+<li id="mainLast"><a href="/help/about.pxt"
class="mainLastLink">About</a></li>
+</ul>
+</div><!-- end mainNavWrap -->
+</div><!-- end navWrap -->
+
+
+
+
+
+
+
+
+<div id="bar">
+
+<div id="systembar">
+<div id="systembarinner">
+
+
+
+
+
+
+<div>
+
+</div>
+
+
+</div>
+</div>
+
+</div>
+<!-- close bar -->
+
+
+
+
+ </div>
+ <div class="wrap" id="bottom-wrap">
+ <div id="content">
+ <table width="100%" cellspacing="0">
+ <tbody><tr>
+ <td class="sidebar">
+
+
+<div id="sidenavp"><ul></ul>
+</div>
+
+ </td>
+ <td class="page-content" width="100%">
+
+
+ <h1>404 Error - File Not Found</h1>
+ <p>Please report this error to your local administrator.</p>
+
+ </td>
+ </tr>
+ </tbody></table>
+
+ <div id="footer">
+ Copyright © 2002-08 Red Hat, Inc. All rights reserved. <a
href="https://www.redhat.com/legal/privacy_statement.html">P...
statement</a> : <a
href="http://www.redhat.com/legal/legal_statement.html">Legal
statement</a> : <a
href="http://www.redhat.com/">redhat.com</a>
+ </div>
+
+ </div> <!-- close content -->
+ </div> <!-- close wrap -->
+
+ </body></html>
diff --git a/web/html/errors/413.html b/web/html/errors/413.html
new file mode 100644
index 0000000..5670692
--- /dev/null
+++ b/web/html/errors/413.html
@@ -0,0 +1,131 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
lang="en"><head>
+<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
+ <title>Error</title>
+ <link rel="shortcut icon" href="/img/favicon.ico">
+ <link rel="stylesheet" href="/css/rhn-base.css"
type="text/css">
+ <!--[if IE]>
+ <link rel="stylesheet" type="text/css"
href="/css/rhn-iecompat.css" />
+ <![endif]-->
+ <script src="/javascript/prototype-1.js"></script>
+
+
+
+ </head><body><div class="wrap" id="top-wrap">
+
+
+
+
+
+
+<div id="utility">
+ <div id="utilityLinks">
+<p id="linx"><span
class="hide"><strong>Shortcuts:</strong> </span><a
href="http://kbase.redhat.com/">Knowledgebase</a> <span
class="navPipe">|</span> <a
href="https://scooby.rdu.redhat.com/help">Documentation</...
+ </div>
+ <div id="utilityAccount">
+
+ </div>
+
+</div>
+
+<div id="header">
+ <a href="/"><img src="/img/logo.png" id="rhnLogo"
height="52" width="228"></a>
+ <div id="searchbar">
+ <div id="searchbarinner">
+ <form name="form1" action="/rhn/Search.do"
method="get">
+ <select name="search_type">
+
+ <option value="systems">Systems</option>
+
+ <option value="packages">Packages</option>
+ <option value="errata">Errata</option>
+ <option value="docs">Documentation</option>
+ </select><input name="search_string" maxlength="40"
size="20" type="text">
+
+ <input name="submitted" value="true"
type="hidden">
+ <input class="button" name="image-1"
value="Search" type="submit" align="top"></form>
+ </div>
+ </div>
+</div>
+
+<div id="navWrap">
+<div id="mainNavWrap">
+
+
+<ul>
+<li id="mainFirst-active"><a href="/">Sign
In</a></li>
+
+<li id="mainLast"><a href="/help/about.pxt"
class="mainLastLink">About</a></li>
+</ul>
+</div><!-- end mainNavWrap -->
+</div><!-- end navWrap -->
+
+
+
+
+
+
+
+
+<div id="bar">
+
+<div id="systembar">
+<div id="systembarinner">
+
+
+
+
+
+
+<div>
+
+</div>
+
+
+</div>
+</div>
+
+</div>
+<!-- close bar -->
+
+
+
+
+ </div>
+ <div class="wrap" id="bottom-wrap">
+ <div id="content">
+ <table width="100%" cellspacing="0">
+ <tbody><tr>
+ <td class="sidebar">
+
+
+<div id="sidenavp"><ul></ul>
+</div>
+
+ </td>
+ <td class="page-content" width="100%">
+
+ <h1>413 Error - Request Entity Too Large</h1>
+ <p>The amount of data provided in the request exceeds the capacity
limit.</p>
+<p>
+ You have probably received this error because you have attempted to
+ upload a file that is larger than the maximum allowed size.
+</p>
+
+ <p>
+ Please report this error to your local administrator.
+ </p>
+
+
+ </td>
+ </tr>
+ </tbody></table>
+
+ <div id="footer">
+ Copyright © 2002-08 Red Hat, Inc. All rights reserved. <a
href="https://www.redhat.com/legal/privacy_statement.html">P...
statement</a> : <a
href="http://www.redhat.com/legal/legal_statement.html">Legal
statement</a> : <a
href="http://www.redhat.com/">redhat.com</a>
+ </div>
+
+ </div> <!-- close content -->
+ </div> <!-- close wrap -->
+
+ </body></html>
diff --git a/web/html/errors/500.html b/web/html/errors/500.html
new file mode 100644
index 0000000..a5237a8
--- /dev/null
+++ b/web/html/errors/500.html
@@ -0,0 +1,135 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
lang="en"><head>
+<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
+ <title>Error</title>
+ <link rel="shortcut icon" href="/img/favicon.ico">
+ <link rel="stylesheet" href="/css/rhn-base.css"
type="text/css">
+ <!--[if IE]>
+ <link rel="stylesheet" type="text/css"
href="/css/rhn-iecompat.css" />
+ <![endif]-->
+ <script src="/javascript/prototype-1.js"></script>
+
+
+
+ </head><body><div class="wrap" id="top-wrap">
+
+
+
+
+
+
+<div id="utility">
+ <div id="utilityLinks">
+<p id="linx"><span
class="hide"><strong>Shortcuts:</strong> </span><a
href="http://kbase.redhat.com/">Knowledgebase</a> <span
class="navPipe">|</span> <a
href="https://scooby.rdu.redhat.com/help">Documentation</...
+ </div>
+ <div id="utilityAccount">
+
+ </div>
+
+</div>
+
+<div id="header">
+ <a href="/"><img src="/img/logo.png" id="rhnLogo"
height="52" width="228"></a>
+ <div id="searchbar">
+ <div id="searchbarinner">
+ <form name="form1" action="/rhn/Search.do"
method="get">
+ <select name="search_type">
+
+ <option value="systems">Systems</option>
+
+ <option value="packages">Packages</option>
+ <option value="errata">Errata</option>
+ <option value="docs">Documentation</option>
+ </select><input name="search_string" maxlength="40"
size="20" type="text">
+
+ <input name="submitted" value="true"
type="hidden">
+ <input class="button" name="image-1"
value="Search" type="submit" align="top"></form>
+ </div>
+ </div>
+</div>
+
+<div id="navWrap">
+<div id="mainNavWrap">
+
+
+<ul>
+<li id="mainFirst-active"><a href="/">Sign
In</a></li>
+
+<li id="mainLast"><a href="/help/about.pxt"
class="mainLastLink">About</a></li>
+</ul>
+</div><!-- end mainNavWrap -->
+</div><!-- end navWrap -->
+
+
+
+
+
+
+
+
+<div id="bar">
+
+<div id="systembar">
+<div id="systembarinner">
+
+
+
+
+
+
+<div>
+
+</div>
+
+
+</div>
+</div>
+
+</div>
+<!-- close bar -->
+
+
+
+
+ </div>
+ <div class="wrap" id="bottom-wrap">
+ <div id="content">
+ <table width="100%" cellspacing="0">
+ <tbody><tr>
+ <td class="sidebar">
+
+
+<div id="sidenavp"><ul></ul>
+</div>
+
+ </td>
+ <td class="page-content" width="100%">
+
+
+ <h1>500 Error - Internal Server Error</h1>
+<p>You may have reached this page in one of the following ways:</p>
+ <ol>
+ <li>You are using an outdated version of Konqueror 3.0, which
+ may not handle form variables properly in all cases. Continuing to
+ use this outdated version of Konqueror may have unexpected results.
+ Please up2date to the latest version of Konqueror (3.03 or
+ greater), or if this is not possible, please use another
+ browser.</li>
+ <li>You've found an error in the site. Please report this error
+ to your local administrator with details of how you received this
+ message.</li>
+ </ol>
+
+
+ </td>
+ </tr>
+ </tbody></table>
+
+ <div id="footer">
+ Copyright © 2002-08 Red Hat, Inc. All rights reserved. <a
href="https://www.redhat.com/legal/privacy_statement.html">P...
statement</a> : <a
href="http://www.redhat.com/legal/legal_statement.html">Legal
statement</a> : <a
href="http://www.redhat.com/">redhat.com</a>
+ </div>
+
+ </div> <!-- close content -->
+ </div> <!-- close wrap -->
+
+ </body></html>
diff --git a/web/html/errors/error.html b/web/html/errors/error.html
deleted file mode 100644
index 265323c..0000000
--- a/web/html/errors/error.html
+++ /dev/null
@@ -1,134 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
lang="en"><head>
-<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
- <title>Error</title>
- <link rel="shortcut icon" href="/img/favicon.ico">
- <link rel="stylesheet" href="/css/rhn-base.css"
type="text/css">
- <!--[if IE]>
- <link rel="stylesheet" type="text/css"
href="/css/rhn-iecompat.css" />
- <![endif]-->
- <script src="/javascript/prototype-1.js"></script>
-
-
-
- </head><body><div class="wrap" id="top-wrap">
-
-
-
-
-
-
-<div id="utility">
- <div id="utilityLinks">
-<p id="linx"><span
class="hide"><strong>Shortcuts:</strong> </span><a
href="http://kbase.redhat.com/">Knowledgebase</a> <span
class="navPipe">|</span> <a
href="https://scooby.rdu.redhat.com/help">Documentation</...
- </div>
- <div id="utilityAccount">
-
- </div>
-
-</div>
-
-<div id="header">
- <a href="/"><img src="/img/logo.png" id="rhnLogo"
height="52" width="228"></a>
- <div id="searchbar">
- <div id="searchbarinner">
- <form name="form1" action="/rhn/Search.do"
method="get">
- <select name="search_type">
-
- <option value="systems">Systems</option>
-
- <option value="packages">Packages</option>
- <option value="errata">Errata</option>
- <option value="docs">Documentation</option>
- </select><input name="search_string" maxlength="40"
size="20" type="text">
-
- <input name="submitted" value="true"
type="hidden">
- <input class="button" name="image-1"
value="Search" type="submit" align="top"></form>
- </div>
- </div>
-</div>
-
-<div id="navWrap">
-<div id="mainNavWrap">
-
-
-<ul>
-<li id="mainFirst-active"><a href="/">Sign
In</a></li>
-
-<li id="mainLast"><a href="/help/about.pxt"
class="mainLastLink">About</a></li>
-</ul>
-</div><!-- end mainNavWrap -->
-</div><!-- end navWrap -->
-
-
-
-
-
-
-
-
-<div id="bar">
-
-<div id="systembar">
-<div id="systembarinner">
-
-
-
-
-
-
-<div>
-
-</div>
-
-
-</div>
-</div>
-
-</div>
-<!-- close bar -->
-
-
-
-
- </div>
- <div class="wrap" id="bottom-wrap">
- <div id="content">
- <table width="100%" cellspacing="0">
- <tbody><tr>
- <td class="sidebar">
-
-
-<div id="sidenavp"><ul></ul>
-</div>
-
- </td>
- <td class="page-content" width="100%">
-
-
- <h1>Page Error</h1>
- <p>Error requesting page. Some possible causes of this problem:</p>
-
- <ol>
- <li>Page no longer exists</li>
- <li>Page permission issue</li>
- <li>You are doing something naughty</li>
- </ol>
-
- <p>Cookie support required. Note: cookies are
<strong>not</strong> used
- for marketing purposes; we use them strictly to keep track
- of your login state and other state data absolutely
- necessary for the proper functioning of your account.</p>
-
- </td>
- </tr>
- </tbody></table>
-
- <div id="footer">
- Copyright © 2002-08 Red Hat, Inc. All rights reserved. <a
href="https://www.redhat.com/legal/privacy_statement.html">P...
statement</a> : <a
href="http://www.redhat.com/legal/legal_statement.html">Legal
statement</a> : <a
href="http://www.redhat.com/">redhat.com</a>
- </div>
-
- </div> <!-- close content -->
- </div> <!-- close wrap -->
-
- </body></html>