Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.
Kommentar: Migrated to Confluence 5.3

Indholdsfortegnelse

For more about this, see:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

https://confluence.atlassian.com/display/DOC/Using+Apache+with+virtual+hosts+and+mod_proxy

Here is my config configs to pass to my Atlassian Jira, that runs on the server, port 8080JIRA (port 8080) And Atlassian Confluence (port 8090)

JIRA

Kodeblok
Kodeblok


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

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

</VirtualHost>

This also requires some extra parameters to the Tomcat's server.xml

Kodeblok

   <Service name="Catalina">

Order Allow,Deny
        Allow <Connector port="8080"

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

The ReWrite Url disables hitting the Confluence Dashboard, redirection to  /display/public/ directly

Kodeblok
<VirtualHost *:80>

 maxThreads="150"
        ServerAdmin bnp@mos-eisley.dk
          minSpareThreads="25"ServerName www.mos-eisley.dk
        ServerAlias mos-eisley.dk

          maxSpareThreads="75"DocumentRoot /var/www
        ErrorDocument 503 /503.html


        RewriteEngine connectionTimeout="20000"On

        RewriteRule ^/dashboard.action.*          enableLookups="false"/display/public/ [PT]


        ProxyPass           maxHttpHeaderSize="8192"/ http://localhost:8090/
        ProxyPassReverse / http://localhost:8090/


         protocol="HTTP/1.1"<Proxy *>
        Order Allow,Deny
        Allow from useBodyEncodingForURI="true"all
        Deny from          redirectPort="8443"80 10.40.62.77
        Deny from none
         acceptCount="100"
</Proxy>


</VirtualHost>

 

Proxy passing a subpart

If You want JIRA or Confluence to run under /jira or /docs - often interesting if www.site.dk has SSL enabled - the proxy part can be configured as:

Kodeblok
        ProxyPass /docs http://localhost:8080/docs
         disableUploadTimeout="true"ProxyPassReverse /docs http://localhost:8080/docs
        ProxyPass /jira http://localhost:6060/jira
         scheme="http"
 proxyName="jira.mos-eisley.dk"
 proxyPort="80"/>ProxyPassReverse /jira http://localhost:6060/jira