HOSTED SPACES

Hosting Spaces on a sub folder

4min
the default way to host documentation with archbee is on your custom domain, e g docs piedpiper com to make docs available at your main domain at a sub folder like https //www piedpiper com/docs , you will need access to your webservers to be able to proxy requests to our systems you will need to setup a default custom domain anyway, and then proxy to it from your main domain we will take care that google doesn't see it as duplicate by signalling it through a custom canonical tag step 1 enter the optional proxy like in the picture below while you're here, please make sure the url path at step 5, is the same one you set below in your webserver config step 2 here are a couple of samples from popular webservers on how to config it so that the proxying system works nginx server config location /docs { proxy ssl server name on; proxy pass https //docs piedpiper com/docs proxy set header host docs piedpiper com; proxy set header x real ip $remote addr; proxy set header x forwarded for $proxy add x forwarded for; proxy set header x forwarded proto $scheme; proxy set header "requested by" "proxy"; } apache server config ensure the following modules are installed and enabled sudo a2enmod proxy sudo a2enmod proxy balancer sudo a2enmod proxy http add the following to the site configuration file under /etc/apache2/sites available for example 000 default conf sslproxyengine on proxypass "/docs" "https //docs piedpiper com/docs" proxypassreverse "/docs" "https //docs piedpiper com/docs" our full domain test working config looks something like \<virtualhost 80> servername piedpiper com documentroot "/app" \<directory "/app"> options indexes followsymlinks allowoverride all require all granted \</directory> sslproxyengine on proxypass "/docs" "https //docs piedpiper com/docs proxypassreverse "/docs" "https //docs piedpiper com/docs" \</virtualhost> restart the apache server for example, if you are using apache on linux $ sudo service apache2 restart
🤔
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.