Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

3
AWS Plex to NGinx Reverse Proxy
Post Body

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;
    }
 }

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
34,362
Link Karma
3,056
Comment Karma
31,193
Profile updated: 5 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago