1. Home
  2. Platform Administration
  3. Setting Up Reverse Proxy on NGINX 

Setting Up Reverse Proxy on NGINX 

Important: If you haven’t already, please read through the How to Setup Reverse Proxy for a PathFactory Instance before reading this article.

A reverse proxy, whether it’s a server, application, or cloud service, acts as a middleman, managing and optimizing the flow of information between visitors and the website domains they want to access. When using reverse proxy with PathFactory, visitors experience a seamless navigation flow and see PathFactory destination experiences as subfolder/subdirectory URLs within your primary domain folder structure vs. as a subdomain – i.e., companydomain.com/resourcehub vs. resourcehub.companydomain.com. Additionally, reverse proxy enhances security and helps distribute incoming requests across multiple servers to balance the load on busy websites.

Follow these steps to implement the code snippet provided below:

  1. Copy the entire code sample below.
  2. Paste the code into a text editor.
  3. Replace specific placeholders within the code:
  • Replace <subdirectory> with your organization’s subdirectory name.
  • Replace <mycompany> with your organization’s name.
  1. Copy the modified code.
  2. Paste the modified code into a script or configuration file.
location /explore/ {
proxy_set_header Host $host;

proxy_set_header X-Forwarded-Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_pass https://<mycompany.pathfactory.com>/<subdirectory>/;


Updated on March 26, 2024

Was this article helpful?

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!