Hi there - hoping someone here can help me? I'm fairly new to Linux/nginx and having some problems getting reverse proxy to work.
Currently I'm running 3 virtual Ubuntu servers on an ESXi host at home - a webserver (nginx), a mail server (iRedMail) and a file server.
I have my own web domain - www.example.com - which is hosted on the nginx server. When I installed iRedMail, it automatically installed Apache and Roundcube as part of the process. I'd like to be able use a subdomain - mail.example.com - to access Roundcube externally, using reverse proxy.
I added the following into nginx (the mail server running Apache is on 192.168.0.13);
server {
listen 80;
server_name mail.example.com;
location / {
proxy_pass http://192.168.013;
}
}
With this, if I'm sitting on the internal network, mail.example.com takes me to the Roundcube login page. Externally though, it doesn't work. I've obviously missed something out, or done something incorrect, but I can't seem to find a straight answer on the subject using Google.
Any help here would be really appreciated - and obviously if I've missed any details out here that may help, feel free to ask any questions.
Thanks