Hello everyone,
I'm currently using a trial of Confluence on a fresh CentOS7 install. To get a nicer URL without a port number in it, I followed this guide to configure Apache mod_proxy_http with a subdomain (confluence.example.com).
This seems to be partially working. If I go to confluence.example.com:8090 I get Confluence working as intended. However, when I go to confluence.example.com (without the port number), the site does not seem to display CSS elements.
I was wondering if any of you had this problem before and how you solved it. Below is my Apache vhost config:
<VirtualHost *:80>
ServerName confluence.example.com
ProxyRequests Off
ProxyVia Off
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://confluence.example.com:8090/confluence/
ProxyPassReverse / http://confluence.example:8090/confluence/
</VirtualHost>
If you need any additional information, please let me know.
Thanks in advance!
Hi there!
On the ProxyPass line, can you try removing the / after confluence/?
See if that works for you. I know this has helped other users in the past.
Regards,
Shannon
Hi Shannon,
Thanks for the reply! Sadly, removing the trailing slash did not help. Additional detail I noticed: When I go to confluence.example.com I land on a 404 (Page Not Found) with no CSS of Confluence itself.
Regards,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tim,
Thank you for letting me know. You removed it on both lines?
In your Confluence setup (conf/server.xml), can you confirm if you are you using a context path or not? It sounds like originally you were accessing Confluence via confluence.example.com:8090 but if you have a context path set then you wouldn't be able to.
If you don't have a context path set then both ProxyPass lines wouldn't include it:
/ http://confluence.example.com:8090
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shannon,
I managed to fix it, thanks to your help. Part 1 of the problem is that I did not a dot com to the ProxyPassReverse line. Good old human error.
You were right, I did not setup a context path, so there was no need for it to be in the Apache vhost config. I removed it and it worked. For anyone else having this problem: this is my Apache config. Please note, I had to add the trailing slash to the ProxyPass and ProxyPassReverse line before this worked.
<VirtualHost *:80>
ServerName confluence.example.com
ProxyRequests Off
ProxyVia Off
Timeout 2400
ProxyTimeout 2400
ProxyBadHeader Ignore
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://confluence.example.com:8090/
ProxyPassReverse / http://confluence.example.com:8090/
</VirtualHost>
Thanks once again!
Regards,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tim,
Thank you for confirming you were able to resolve the issue! Glad it helped.
Take care, and have a pleasant weekend.
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.