Apache ProxyPass: Page not refreshing automatically after SSL installed

Hi,

yesterday I configured an Apache Reverse Proxy to get a SSL certificate for Ansible AWX inside docker running on port 8080. Apache with the proxy is in front of the docker listening on port 80.

Everything’s working fine but now if I’m starting a job the site is not refreshing itself. I have to do it manually to get results. If I’m doing it through browsing server ip it’s working fine.

I’m pretty sure I’m thinking the wrong way I think. This is the code of my Apache conf:

`

SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
<VirtualHost *:443>``` ServerName domain.com `ServerAdmin mail@domain.com` `#Proxypass
ProxyPass / http://IP:8080/``` ProxyPassReverse / http://IP:8080/```
ProxyPreserveHost On``` ProxyPassReverseCookiePath / / # Substitute “s|http://IP:8080/|https://domain.com|i”```

<Proxy *>``` Order deny,allow `Allow from all
Allow from localhost``` `

SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost *:80>``` ProxyPass / http://IP:8080/`

Redirect permanent / https://domain.com``` ErrorLog ${APACHE_LOG_DIR}/error.log```
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPass / ws://IP:8080/
RewriteEngine on``RewriteCond %{SERVER_NAME} =domain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

# # # ADDED NEW # # # ``#RewriteCond %{HTTP:Upgrade} =websocket [NC]
#RewriteRule /(.*)ws://localhost:8080/$1 [P,L]
#RewriteCond %{HTTP:Upgrade} !=websocket [NC]
#RewriteRule /(.*)http://localhost:8080/$1 [P,L]
</VirtualHost>

`

Many thanks in advance. :slight_smile: