claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 184 forks source link

run jingo in subfolder #201

Open Haikuch opened 7 years ago

Haikuch commented 7 years ago

I run jingo on port 62000 and have redirected via .htaccess the url server.com/nodejs/ to that port. So I can open jingo via server.com/nodejs/wiki/Home. But the assets are not correctly linked:

<link rel="stylesheet" href="/css/style.css"/>
<link rel="stylesheet" href="/css/ionicons.min.css"/>

that should be nodejs/css. I tried to fix that via the baseUrl in config like:

baseUrl: '//localhost:62000/nodejs'

but it didn't change anything. Is there a variable to fix that relation?

claudioc commented 7 years ago

Hi @Haikuch, have you tried the wiki pages? I guess you are encountering a problem similar to the last page (running into a folder). Take a look! :)

https://github.com/claudioc/jingo/wiki

Haikuch commented 7 years ago

thx, I just had to set the subfolder in the application.proxyPath

Haikuch commented 7 years ago

But is is possible to remove the automatic /wiki from the url? I now have intern.server.com/wiki/wiki/Home...