暑期编程PK赛 得CSDN机械键盘等精美礼品!DocumentRoot "D:kindoapache-tomcat-7.0.92webappsROOT" ServerName www.kindo1.com.cn ServerAlias kindo.cn 121.50.86.XXX ServerAdmin admin@medto.cn # Allow accessing the document root directory Options FollowSymlinks AllowOverride All Order allow,deny Allow from all # Logging LogFormat "%h %l %u %t "%r" %>s %b" common CustomLog logs/access_kindo.log common ErrorLog logs/error_kindo.log RewriteLog logs/rewrite_kindo.log RewriteLogLevel 1 # Do not forward the request if the requested URI is located in the resources folder or is static content SetEnvIfNoCase Request_URI ^/resources/.*$ no-jk SetEnvIfNoCase Request_URI ^/export/.*$ no-jk SetEnvIfNoCase Request_URI ^/kindoWebsite/.*$ no-jk # Turn rewriting on and define the rules RewriteEngine On # Deny access to php files in order to prevent reading resources RewriteCond %{REQUEST_FILENAME} (.+).php(.*) RewriteRule (.*) / [F] # If the requested URI is NOT located in the resources folder and is not static: # Prepend an /opencms to everything that does not already starts with it # and force the result to be handled by the next URI-handler ([PT]) (JkMount in this case) RewriteCond %{REQUEST_URI} !^/resources/.*$ RewriteCond %{REQUEST_URI} !^/export/.* RewriteCond %{REQUEST_URI} !^/kindoWebsite/.* RewriteRule !^/opencms/(.*)$ /opencms%{REQUEST_URI} [PT] # These are the settings for static export. If the requested resource is not already # statically exported create a new request to the opencms404 handler. This has to be # a new request, because the current would not get through mod_jk because of the "no-jk". RewriteCond %{REQUEST_URI} ^/export/.*$ RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f RewriteRule .* http://www.kindo.com.cn/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P] # If the request starts with /resources, substitute the prefix RewriteCond %{REQUEST_URI} ^/resources/.*$ RewriteRule ^/(.*)$ /$1 #RewriteRule ^/system/login.* http://www.kindo.com.cn/system/login/ [L,R] ErrorDocument 404 /system/handler/handle404.html JkMount /opencms/* ocms JkMount /opencms ocms



