当前位置:网站首页>Apache22 and opencms9.5 integrated configuration
Apache22 and opencms9.5 integrated configuration
2022-07-27 10:43:00 【shibushi114】
<VirtualHost *:80>
DocumentRoot "D:\kindo\apache-tomcat-7.0.92\webapps\ROOT"
ServerName www.kindo1.com.cn
ServerAlias kindo.cn 121.50.86.XXX
ServerAdmin [email protected]
# Allow accessing the document root directory
<Directory D:\kindo\apache-tomcat-7.0.92\webapps\ROOT>
Options FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# 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
</VirtualHost>
边栏推荐
- php生成文字图片水印
- Matlab create the logo of MATLAB
- mount. Nfs: access denied by server while mounting
- Matlab draws the system response under different damping
- Redis data structure analysis (II)
- 【英雄哥六月集训】第 24天: 线段树
- es6的foreach与some的循环遍历
- 已解决SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated
- 简单几步教您实现为工业树莓派共享网络
- Program translation and execution, from editing, preprocessing, compilation, assembly, linking to execution
猜你喜欢

ASP.NET Core依赖注入之旅:1.理论概念

Analysis of heterogeneous computing technology

No Identifier specified for entity的解决办法

Two architectures of ETL (ETL architecture and ELT Architecture)

Redis data structure analysis (II)

wind10配置adb命令
![[Flink] Flink builds clusters in standalone mode](/img/5b/e566fdd2792b5cda7d37d308ee32e2.png)
[Flink] Flink builds clusters in standalone mode

异构计算技术分析

Gamer questions

phpstudy中Apache无法启动
随机推荐
想要一键加速ViT模型?试试这个开源工具!
Matlab create text cloud
Beijing publicized the spot check of 8 batches of children's shoes, and qierte was listed as unqualified
Li Kou brush question 02 (sum of three numbers + sum of maximum subsequence + nearest common ancestor of binary tree)
基于Spark封装的二次开发工程edata-base,介绍
Server access speed
深度解析:什么是Diffusion Model?
es6的foreach与some的循环遍历
数据库操作基础语句
Different binary conversion of MATLAB
7z usage
分布式块设备复制:客户端
[intensive reading of thesis]bert
Camera switching
It is thought-provoking: is syntax really important? Qiu Xipeng group proposed a powerful baseline for aspect based emotional analysis
FTP server
flask_ Output fields in restful (resources, fields, marshal, marshal_with)
[Flink] Flink builds clusters in standalone mode
Metaspolit
Shardingsphere kernel principle