This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey /r/nginx,
I'm fairly new to nginx. But recently I've started playing around with nginx's reverse proxy capabilities. In my home lab, I set up an nginx proxy. And i'm able to resolve proxy.lab.local:"port #" to a few servers.
Now I have 2 free-tier amazon EC2 instance running plex (because why not) and nginx proxy. However instead of typing in 1.2.3.4:32400/web/html for my plex server. i'd like my reverse proxy to push plex to 5.6.7.8.
How exactly would I accomplish this? I have a default template that I'm working with:
server {
#If I'm understanding this correctly, my AWS Nginx server.
listen 80;
server_name foxplex.com:32400/web/html;
rewrite ^ https://$host$request_uri? permanent;
}
server {
#My AWS Plex Server.
listen 80 32400;
server_name foxplex.com;
location / {
proxy_pass http://5.6.7.8:32400;
}
}
Subreddit
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/nginx/comme...