requarks / wiki

Wiki.js | A modern and powerful wiki app built on Node.js
https://js.wiki
GNU Affero General Public License v3.0
24.64k stars 2.73k forks source link

Problem running on alternative port #600

Closed tristanbettany closed 6 years ago

tristanbettany commented 6 years ago

Actual behavior

When running on a alternative port instead of port 80, not all pages are correctly accessible or do not load assets and scripts. The configure pages work fine on its custom port of 3000 however after configuring for running on a custom port, the urls in the source files do not seem to apply the port along with the host when loading in assets and scripts in the header.

Expected behavior

Should be able to access the entire project on a custom port without failing assets and scripts

Steps to reproduce the behavior

Install wikijs on a newly provisioned server and configure it during the installation process to use a port other than port 80. Then try and visit the installation afterwards to be served up a broken application.

NGPixel commented 6 years ago

The value you've set for host is incorrect. If you're using a custom port, you must include it in your host config as well.

https://docs.requarks.io/wiki/install/troubleshooting#weird-display-no-styling-missing-css