DevHub Docs
Search…
NGINX configuration
Example of an NGINX server configuration to host pages under your existing server
Subdirectory Proxy Configuration for (NGINX) servers

Step 1: Modify sites-available config file

Below is an example of configuring your NGINX server sites-enabled entry to route traffic for some paths within your existing domain.
The item you will need to complete:
  1. 1.
    The custom location directives that will be provided by us. An example of these can be found below.
1
server {
2
listen 80;
3
server_name customerdomain.com;
4
5
# start configuration entries..
6
7
<ADD_YOUR_LOCATION_DIRECTIVES here>
8
9
# continue normal configuration..
10
}
Copied!

Step 2: Example location directives

This is just an example of the location directives that would be added to serve the path and some of the other assets (styles, images, etc) from our platform. The specific location directives you will install will be provided by us.
1
location /your-path/ {
2
proxy_set_header Host customerdomain.com;
3
proxy_pass http://255.255.255.255:80;
4
}
5
location /style/ {
6
proxy_set_header Host customerdomain.com;
7
proxy_pass http://255.255.255.255:80;
8
}
9
location /img/ {
10
proxy_set_header Host customerdomain.com;
11
proxy_pass http://255.255.255.255:80;
12
}
13
location /stat/ {
14
proxy_set_header Host customerdomain.com;
15
proxy_pass http://255.255.255.255:80;
16
}
Copied!
Last modified 2yr ago