requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Reverse proxy on specific path doesn't work. #57

Open tychenjiajun opened 6 years ago

tychenjiajun commented 6 years ago

Actual behavior

I followed the guide here and set the reverse proxy as the following

ProxyPass "/wikijs"  "http://10.193.1.126:3000"
ProxyPassReverse "/wikijs"  "http://10.193.1.126:3000"

It works perfectly when I browse http://10.193.1.126:3000 but when I try to login on http://apachehttpdserver/wikijs/login , it sends the post request to http://apachehttpdserver/login and got 503.

Expected behavior

All request should be sent to /wikijs instead of /
Login request should be sent to /wikijs/login instead of /login

Steps to reproduce the behavior

Set reverse proxy on points other than / and browse.

NGPixel commented 6 years ago

Sub-folders are not yet fully supported. This is coming in 2.0.

benduckwdesign commented 6 years ago

I also have this issue so I would appreciate a fix for this as well.

bit-jmm commented 6 years ago

@NGPixel Hi, When the 2.0 will release?

jandrieu commented 6 years ago

FYI, in gitter, @NGPixel said today:

Subfolder installation will not be supported in 2.0 or any future version for now. Too many potential issues with supporting subfolder installations. Use a subdomain instead.

Bummer, but I get you need to pick your battles. Good to know.