<Directory "/var/www/html/*"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> PerlTaintCheck Off PerlFixupHandler Apache2::SizeLimit PerlRequire /usr/share/rhn/startup.pl # these will be set via /etc/sysconfig/httpd PerlPassEnv ORACLE_HOME 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> SetHandler perl-script PerlHandler PXT::ApacheHandler </Files> <Files download> ForceType text/pxt SetHandler perl-script PerlHandler PXT::ApacheHandler </Files> <Files ty> ForceType text/pxt SetHandler perl-script PerlHandler PXT::ApacheHandler </Files> <Files *.pxi> Order allow,deny Deny from all Satisfy All </Files> <IfModule !mod_version.c> LoadModule version_module modules/mod_version.so </IfModule> <IfVersion >= 2.1> <IfModule !proxy_ajp_module> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so </IfModule> </IfVersion> # Turn rewrite engine on so we can use it for # kickstart requests. RewriteEngine on RewriteOptions inherit SSLProxyEngine on <IfModule proxy_ajp_module> RewriteRule ^/rhn(.*) ajp://localhost:8009/rhn$1 [P] RewriteRule ^(/.*\.(do|jsp)(\?.*)?)$ ajp://localhost:8009/$1 [P] </IfModule> RedirectMatch ^/renew/.* http://rhn.redhat.com RedirectMatch ^/index\.html$ /rhn/Login.do # Disable TRACE and TRACK RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] ServerTokens Prod ServerSignature Off # This rule handles incoming kickstart file requests from # machines actually performing a kickstart. This rule # processes the incoming URL and converts it into something # slightly more Struts friendly. RewriteRule ^/ks/cfg([-a-zA-Z0-9\._/\%\ ]*)$ /rhn/kickstart/DownloadFile.do?ksurl=$1 [P] RewriteRule ^/download/(.*)$ /rhn/common/DownloadFile.do?url=$1 [P] RewriteRule ^/rpc/api /rhn/rpc/api [P] RewriteRule ^/ks/dist(.*)$ /rhn/common/DownloadFile.do?url=/ks/dist$1 [P] # For rhn-custom-info RewriteRule ^/WEBRPC /rhn/rpc/api [P]