i have tried this https://confluence.atlassian.com/display/DOC/Using+Apache+with+virtual+hosts+and+mod_proxy
But it is not working
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.