2013-09-13 15:51:11
来 源
ITJS.CN
Apache
该篇讲述Apache服务器配置proxy代理访问jira和confluence平台,希望对于初学Apache服务器相关的朋友有帮助,更多Apache安装、配置、报错处理等资源请本站内搜索。

apache 安装目录:/usr/local/apache2

jira安装目录:/usr/local/jira

给apache 增加proxy模块:

设置代理:

vi httpd.conf

NameVirtualHost *:80

<VirtualHost *:80>

ProxyRequests Off

ProxyPreserveHost On

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

ProxyPass /confluence

http://localhost:8090/confluence

ProxyPassReverse /confluence http://localhost:8090/confluence

<Location /confluence>

Order allow,deny

Allow from all

</Location>

ProxyPass /jira

http://192.168.3.113:8080/jira

ProxyPassReverse /jira http://192.168.3.113:8080/jira

<Location /jira>

Order allow,deny

Allow from all

</Location>

</VirtualHost>

配置jira和confluence

vi /usr/local/jira/conf/server.xml

<Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false">

vi /usr/local/confluence/conf/server.xml

<Context path="/confluence" docBase="../confluence" debug="0" reloadable="false">

就可以通过 ip/jiraip/confluence 来访问了

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。