{"action":"created","issue":{"url":"https://api.github.com/repos/claudioc/jingo/issues/114","labels_url":"https://api.github.com/repos/claudioc/jingo/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/claudioc/jingo/issues/114/comments","events_url":"https://api.github.com/repos/claudioc/jingo/issues/114/events","html_url":"https://github.com/claudioc/jingo/issues/114","id":121309428,"number":114,"title":"nginx relative root problem","user":{"login":"creynold","id":2825265,"avatar_url":"https://avatars.githubusercontent.com/u/2825265?v=3","gravatar_id":"","url":"https://api.github.com/users/creynold","html_url":"https://github.com/creynold","followers_url":"https://api.github.com/users/creynold/followers","following_url":"https://api.github.com/users/creynold/following{/other_user}","gists_url":"https://api.github.com/users/creynold/gists{/gist_id}","starred_url":"https://api.github.com/users/creynold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creynold/subscriptions","organizations_url":"https://api.github.com/users/creynold/orgs","repos_url":"https://api.github.com/users/creynold/repos","events_url":"https://api.github.com/users/creynold/events{/privacy}","received_events_url":"https://api.github.com/users/creynold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-09T18:27:22Z","updated_at":"2015-12-13T15:43:04Z","closed_at":null,"body":"I'm using NGINX with jingo. First I defined a server block:\r\n\r\n    server {\r\n        listen 8080;\r\n        server_name wiki;\r\n        location / {\r\n            proxy_pass http://127.0.0.1:6067/;\r\n        }\r\n    }\r\n\r\nNow if I browse to `http://<server domain>:8080` everything works fine. I'd like to move this to `http://<server domain>/wiki`, however. But when I do this:\r\n\r\n    server {\r\n        listen 80;\r\n        server_name <server name>\r\n        ...\r\n        location /wiki {\r\n            proxy_pass http://localhost:6067/;\r\n        }\r\n    }\r\n\r\nAll of the urls in the jingo page are relative to the server root, and so no css/js files are loaded. Additionally it defaults to `http://<server domain>/wiki/Home` instead of `http://<server domain>/wiki/wiki/Home`. \r\n\r\nIs there a way around this?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/claudioc/jingo/issues/comments/164269296","html_url":"https://github.com/claudioc/jingo/issues/114#issuecomment-164269296","issue_url":"https://api.github.com/repos/claudioc/jingo/issues/114","id":164269296,"user":{"login":"almereyda","id":1645308,"avatar_url":"https://avatars.githubusercontent.com/u/1645308?v=3","gravatar_id":"","url":"https://api.github.com/users/almereyda","html_url":"https://github.com/almereyda","followers_url":"https://api.github.com/users/almereyda/followers","following_url":"https://api.github.com/users/almereyda/following{/other_user}","gists_url":"https://api.github.com/users/almereyda/gists{/gist_id}","starred_url":"https://api.github.com/users/almereyda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almereyda/subscriptions","organizations_url":"https://api.github.com/users/almereyda/orgs","repos_url":"https://api.github.com/users/almereyda/repos","events_url":"https://api.github.com/users/almereyda/events{/privacy}","received_events_url":"https://api.github.com/users/almereyda/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T15:43:04Z","updated_at":"2015-12-13T15:43:04Z","body":"I propose to close this issue. nginx supports rewrite rules for `proxy_pass`. See https://raymii.org/s/tutorials/NGINX_proxy_folder_to_different_root.html for details."}}