Yesterday I did my first steps with docker on my VPS and installed Redmine. After setting it up I decided that I want it to be accessible via subdomain instead of port.
In my Apache host settings I'm using ProxyPass for this and it works:
ProxyPass / http://127.0.0.1:22679/ ProxyPassReverse / http://127.0.0.1:22679/
This is my vhost config:
<VirtualHost *:443> ProxyPass / http://127.0.0.1:22679/ ProxyPassReverse / http://127.0.0.1:22679/ ServerName redmine.example.com </VirtualHost>
This works via https (https://redmine.example.org), but I'm a bit concerned about security and the right usage of ProxyPass. I would block the ports via iptables so it can't be accessed from outside only from my localhost.
So what I want to ask is: Is this completely fine or am I doing it wrong? Also it seems a bit "weird" to me that I'm getting through my
http:// traffic from localhost.
I searched the internet how to make a docker app accessible via a subdomain, but the only thing I found was this solution with