Confluence with apache

saurabh bhagat June 23, 2013

3 answers

0 votes
CelsoA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 1, 2013

Hi there,

What happens when you try to access Confluence?

Could you please try this Virtual Host and tell me how it goes?

<VirtualHost *:80>
    #Creating virtual host
    ServerAdmin admin@domain.com
    ServerName confluence.example.com
    ServerAlias confluence.example.com
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / http://your_confluence_original_url:8080/
    ProxyPassReverse / http://your_confluence_original_url:8080/
    <Location />
        Order allow,deny
        Allow from all
    </Location>
    ErrorLog /path/to/example.com-error.log
    LogLevel debug
    CustomLog /path/to/example.com-access.log combined
</VirtualHost>
 
 
Regards,
Celso Yoshioka
0 votes
saurabh bhagat June 23, 2013

Chages done are

1)Server.xml

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8090" minProcessors="5"
maxProcessors="75"
enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false" URIEncoding="UTF-8"
proxyName="confluence.example.com" proxyPort="80"/>

<Context path="/confluence" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname="" />
</Context>

2)httpd-vhost.conf

NameVirtualHost *

<VirtualHost *>
ServerName confluence.example.com

ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://127.0.0.1:8090/confluence<br< a="">> ProxyPassReverse / http://127.0.0.1:8090/confluence<br< a="">> <Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>

3)httpd.conf

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

#LoadModule proxy_html_module modules/mod_proxy_html.so

LoadModule proxy_http_module modules/mod_proxy_http.so

------------------------------------3-Files-Changed----------------------------------------------------------

mod_proxy_html is commented is this can be a problem

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 23, 2013

You're going to need to give us a lot more detail on what you have done. The problem is that the documentation is correct, but for generalised cases. So either you've not followed it correctly, or you have something we don't know about that the guide does not cover (99.99% of cases where someone says "I've tried the docs" turn out to be that they have something that the doc can't cover because it's a specific case for them)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events