View Single Post
Old 26/01/2020, 12:48 PM   #3
Sasinosoft
Little Clucker
 
Sasinosoft's Avatar
 
Join Date: Jan 2020
Location: Tampa, FL
Posts: 27
Reputation: 1
Default Re: Configuring Nginx to reverse-proxy SA-MP server

Quote:
Originally Posted by Markski View Post
This one I used previously for HTTP requests, not sure if it'd work for SA-MP but might be worth a try, tweaked it a bit for your case...

HTML Code:
server {
    listen 7777;
    server_name s2.name.com;
    location / {
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   Host      $http_host;
        proxy_pass         http://127.0.0.1:7778;
    }
}
Thanks, I will give it a try. Should I create a conf file in sites-available containing only this?
Sasinosoft is offline   Reply With Quote