Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
89 lines (64 sloc) 1.59 KB

Reverse Proxy

In these examples Traggo is running on port 3030 on localhost.

nginx

At domain root like http://domain.tld

Proxy http://domain.tld to Traggo.

upstream traggo {
  # Set the port to the one you are using in traggo
  server localhost:3030;
}

server {
  listen 80;

# If you're on localhost:
# server_name localhost;
  server_name localhost;

  location / {
    proxy_pass         http://traggo;
  }
}

At domain sub path like http://domain.tld/traggo/

Proxy http://domain.tld/traggo to Traggo.

upstream traggo {
  # Set the port to the one you are using in traggo
  server localhost:3030;
}

server {
  listen 80;

# If you're on localhost:
# server_name localhost;
  server_name domain.tld;

  location /traggo/ {
    proxy_pass         http://traggo;
    rewrite ^/traggo(/.*) $1 break;
  }
}

Apache

At domain root like http://domain.tld

Proxy http://domain.tld to Traggo.

<VirtualHost *:80>
# If you're on localhost:
#   ServerName localhost
    ServerName domain.tld

    Keepalive On

    ProxyPass "/" http://localhost:3030/ retry=0 timeout=5
    ProxyPassReverse / http://localhost:3030/
</VirtualHost>

At domain sub path like http://domain.tld/traggo/

Proxy http://domain.tld/traggo to Traggo.

<VirtualHost *:80>
# If you're on localhost:
#   ServerName localhost
    ServerName domain.tld

    Keepalive On

    ProxyPass "/traggo/" http://localhost:3030/ retry=0 timeout=5
    #                 ^- !!trailing slash is required!!
    ProxyPassReverse "/traggo/" http://localhost:3030/
</VirtualHost>
You can’t perform that action at this time.