deepwiki icon indicating copy to clipboard operation
deepwiki copied to clipboard

Nginx server port parameter is ignored

Open MoonieGZ opened this issue 7 years ago • 1 comments

Hi, I run nginx on port 3002 because 80 isn't available to me.

However your script rewrites http://domain.tld:3002/wiki to http://domain.tld/wiki/index.php?page=quick-start

I changed define( 'SITE_URI', '/' . $current_path ); to define( 'SITE_URI', ':3002/' . $current_path ); but this breaks themes, so I also changed the THEMES_ROOT_URI to define( 'THEMES_ROOT_URI', '/wiki/deepwiki-themes' ); to get it to work.

This makes it only work for me, would be nice if it could work out of the box for everyone using non-standard ports :)

MoonieGZ avatar May 16 '17 14:05 MoonieGZ

Well, after some testing it doesn't work.

For some reason it can't find my docs, index link is now url:port/wiki/:port/wiki somehow...

I'll leave someone else to fix this or use a script that works OOTB

MoonieGZ avatar May 16 '17 14:05 MoonieGZ