Welcome! Log In Create A New Profile

Advanced

Subdomain to Subdirectory

Posted by raven2k3 
Subdomain to Subdirectory
May 15, 2014 08:48AM
Hello,

I'm trying to run Nginx as a Reverse Proxy to access all my services from the internet.

My Setup :
Internet -> Dynamic DNS (support wildcards) --[point to]--> Nginx(local) --[proxy_pass]--> Synology

- My dynamic ip is assigned to a dynamic dns - like foo.com
- My Synology Webstation is assigned to 192.168.0.1 in my network
- Owncloud is accessible at 192.168.0.1/owncloud (Tomcat)
- Standalone Webserver (NginX) is running under 192.168.0.2

I want to access owncloud through my reverse proxy from the subdomain bar.foo.com

(https) bar.foo.com --> 192.168.0.1/owncloud.

I'm now trying to proxy_pass, proxy_redirect, rewrite for dayes and can't get this to work
I hope someone can help me.

PS: This guy has an equal Problem:
http://forum.nginx.org/read.php?9,246533
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 112
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready