Changing Tyk's Base URL


Is there a way to change the base url of tyk. For example, instead of accessing the dashboard at http://localhost:3000 I want to access it at http://localhost/tyk:3000.


Yes you can add an entry in your hosts file redirecting to localhost from any name you want.

if you add
to hosts file the you can access dash on


It’s really more about reverse proxy. I wan’t Tyk to sit behind Nginx with the following configuration:

location /tyk/ {
proxy_pass localhost:3000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;

After installation the dashboard loads fine. But when I clicked ‘Activate’ license the system fails because it uses the base url / so it is sending localhost:3000/license instead of localhost:3000/tyk/license.