I've setup a subdomain for use with plesk so I don't have to type out the port all the time.
Here is my HTTP
configuration:
SSLProxyEngine Off
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule $ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Here is my HTTPS
configuration:
SSLProxyEngine On
AllowEncodedSlashes On
<Location />
ProxyPass https://localhost:8443/
ProxyPassReverse https://localhost:8443/
</Location>
Here is my nginx
configuration (doesn't do anything I need, just tried it):
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
It shows the IP as 127.0.0.1, how can I get my real IP to show up when behind ProxyPass?