Ssl – Using Confluence with virtual hosts and mod_proxy

ajpapache-2.2confluencessl

on a test server I have installed the latest version of Confluence. I configured a apache with ajp.
But I have a problem, when I login in Confluence, I get the following error message:

Not Found
The requested URL / / homepage.action was not found on this server.

The problem seems to be known, I found following Link:
http://confluence.atlassian.com/display/DOC/Using+Apache+with+virtual+hosts+and+mod_proxy

But unfortunately the forwards have not helped, I still get the error messages. Does anyone have any idea how I could solve the problem?

The following Apache configuration I have set up:

LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so

<IfModule proxy_http_module>
ProxyRequests Off
ProxyPreserveHost On

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

<Location />
Order allow,deny
Allow from all
</Location>

ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

</IfModule>

Best Answer

Your configuration, on the face of it, looks correct, assuming that Confluence is installed and Tomcat is properly configured.

On your server, what do you get if you type this:

curl -D /dev/stderr http://localhost:8080/

And how about this:

curl -D /dev/stderr http://localhost:8080/homepage.action

You said:

I configured a apache with ajp.

Please note that at the moment you're not using ajp. You're proxying using http://; if you were to use ajp, your configuration would look like this:

ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/

However, this shouldn't substantially affect your problem (for simple operation, accessing tomcat over with http or ajp gets you to the same place).

EDIT: The output from curl that you provided demonstrates that Confluence is responding at the correct URLs. In fact, if I take your Apache configuration and drop it verbatim onto my server, it works just fine.

When you attempt to connect to http://yourserver/, what shows up in the Apache access log? Error log?

Related Topic