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/confluenceProxyPassReverse /confluence http://localhost:8090/confluence
<Location /confluence>
Order allow,deny
Allow from all
</Location>
ProxyPass /jira
http://192.168.3.113:8080/jiraProxyPassReverse /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 来访问了
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。