Serve HTTP through SSH with Nginx? -


we have server stuck inside our office network, , access outside office.

i set ssh tunnel on 1 of our public server in cloud computing company. can access our internal server ssh through public server.

but internal server serving webservices. we'd able access webservices there through public server , tunnel ssh between these both.

is there way of doing nginx? or other software actually.

sonny

you should use proxy_pass directive, instance:

location /{     proxy_pass http://<the private server ip>:<the private server http port>/; } 

it redirect every request private server


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -