Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Here is my configs to pass to my Atlassian JIRA (port 8080) And Atlassian Confluence (port 8090)

JIRA

...

Kodeblok
<VirtualHost *:80>
        
        ServerAdmin bnp@mos-eisley.dk
        ServerName jira.mos-eisley.dk
        ServerAlias jira
        ProxyPass / http://localhost:8080/
        ProxyPassReverse / http://localhost:8080/

        <Proxy *>
        Order Allow,Deny
        Allow from all
        Deny from none
        </Proxy>

</VirtualHost>

 

Confluence

...

The "Deny from 80 10.40.62.77" is actually to stop a spammer identified from that IP Address

...

Kodeblok
<VirtualHost *:80>

        ServerAdmin bnp@mos-eisley.dk
        ServerName www.mos-eisley.dk
        ServerAlias mos-eisley.dk

        DocumentRoot /var/www
        ErrorDocument 503 /503.html


        RewriteEngine On
        RewriteRule ^/dashboard.action.* /display/public/ [PT]


        ProxyPass / http://localhost:8090/
        ProxyPassReverse / http://localhost:8090/


        <Proxy *>
        Order Allow,Deny
        Allow from all
        Deny from 80 10.40.62.77
        Deny from none
        </Proxy>


</VirtualHost>

 

Proxy passing a subpart

If You want JIRA or Confluence to run under /jira or /docs, the Proxy part can be confirured as:

Kodeblok

        ProxyPass /docs http://atlassian.norad.dklocalhost:8080/docs
        ProxyPassReverse /docs http://atlassian.norad.dklocalhost:8080/docs
        ProxyPass /jira http://atlassian.norad.dklocalhost:6060/jira
        ProxyPassReverse /jira http://atlassian.norad.dklocalhost:6060/jira

 

 

This also requires 3 extra parameters (scheme,proxyName,proxyPort) to the Tomcat's server.xml; otherwise JIRA and Confluence complains

...