栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Apache22与opencms9.5集成配置

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Apache22与opencms9.5集成配置



  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


暑期编程PK赛 得CSDN机械键盘等精美礼品!
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1016723.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号