# Apache ProxyPass: Page not refreshing automatically after SSL installed

**URL:** <https://forum.ansible.com/t/apache-proxypass-page-not-refreshing-automatically-after-ssl-installed/30049>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 3, 2019, 12:17pm UTC](https://forum.ansible.com/t/apache-proxypass-page-not-refreshing-automatically-after-ssl-installed/30049 "2019-04-03T12:17:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TOB](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@TOB](https://forum.ansible.com/u/TOB)\
**Post date:** [April 3, 2019, 12:17pm UTC](https://forum.ansible.com/t/apache-proxypass-page-not-refreshing-automatically-after-ssl-installed/30049/1 "2019-04-03T12:17:40Z")

</div>

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](http://domain.com)` `ServerAdmin mail@domain.com` `#Proxypass`  
`ProxyPass / http://IP:8080/``` `ProxyPassReverse / [http://IP:8080/```](http://IP:8080/%60%60%60)  
`ProxyPreserveHost On``` `ProxyPassReverseCookiePath / /` `# Substitute “s|[http://IP:8080/|https://domain.com|i](http://IP:8080/%7Chttps://domain.com%7Ci)”```

`<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/`](http://IP:8080/%60)

`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. 🙂
