Welcome! Log In Create A New Profile

Advanced

Reverse Proxy Question? Routing /Folders to alternative ports.

Posted by DWAyotte 
Reverse Proxy Question? Routing /Folders to alternative ports.
August 18, 2010 04:00PM
Howdy all, I am trying to route folders in my URL to different ports, for example if someone types in www.domain.com/download I want that to go to localhost:81/index.asp

Another example is say www.domain.com/logs that will route internally to 10.1.2.3:8000/index.html.

I am not sure how to accomplish this. I essentially do not have the ability to create sub domains with my setup, so I want to use Folders in the URL instead, to access all my services/servers internally.

thanks a ton!

nginx on windows server.
Re: Reverse Proxy Question? Routing /Folders to alternative ports.
August 24, 2010 06:47PM
I am closer I think, but still have an issue.

So what happens is when I add this into my conf

location /music/ {
proxy_pass http://127.0.0.1:8081/;
index index.vibe;
}

and I go browse my url, domain.com/music i get the following: domain.com/index.vibe which fails due to my other

location / {
root html;
index index.html;
}

how do i make it so when I browse to /music the url always maintains /music ?
my suspicion is a rewrite rule, but the reference material in the section doesn't make very much sense to me, so I don't understand how to use rewrite or if it is even what I need.

any help is greatly appreciated.
Re: Reverse Proxy Question? Routing /Folders to alternative ports.
September 16, 2010 01:57PM
Hello

I have nearly the same issue than you, except that I don't need to change the ports. Have you find a solution yet ?

I have looked into the proxy_redirect directives but it doesn't seem to work.

Thank you
Re: Reverse Proxy Question? Routing /Folders to alternative ports.
September 16, 2010 01:59PM
Sadly I haven't. It has been extremely difficult to get anyone to respond to any of my questions, so I have given up at this point.
Re: Reverse Proxy Question? Routing /Folders to alternative ports.
September 16, 2010 03:12PM
Too bad :(

I'll let you know if I find
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready