Editing NGINX:Reverse Proxy

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
## Replace the IP address in "proxy_pass" with the internal IP address and port of the service you are trying to reach internally. Make note if the service uses http or https and if it uses a non-standard port.
## Replace the IP address in "proxy_pass" with the internal IP address and port of the service you are trying to reach internally. Make note if the service uses http or https and if it uses a non-standard port.
# Once adjusted, save the file.
# Once adjusted, save the file.
# Run the command <code>nginx -t</code> to test the syntax. If no errors, restart the nginx service.
# Run the command nginx -t to test the syntax. If no errors, restart the nginx service.
# Create a DNS record for the hostname you created and point it to the external IP. Make sure the record resolves.
# Create a DNS record for the hostname you created and point it to the external IP. Make sure the record resolves.
# On your reverse proxy, run the command <code>certbot</code> and then create a certificate for the reverse proxy host you just created. Certbot will automatically request, install, and renew the SSL certificate for you.  
# On your reverse proxy, run the command certbot and then create a certificate for the reverse proxy host you just created. Certbot will automatically request, install, and renew the SSL certificate for you.  
# That's it! Test your reverse proxy!
# That's it! Test your reverse proxy!


Please note that all contributions to NodeSpace Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see NodeSpace Wiki:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)