All Collections
Personal websites
William Channel
Using your own domain 🌐
William - Reverse-proxy your Wiliam Blog: NGINX example
William - Reverse-proxy your Wiliam Blog: NGINX example

NGINX example showing how you can reverse proxy your William blog.

Gregory Claeyssens avatar
Written by Gregory Claeyssens
Updated over a week ago

⚠️ Caution: The following article assumes technical knowledge of web servers and related concepts and terminology.

In most organizations, the person who can perform the steps described in this article will be a web administrator (or similar).

This guide also assumes that you have reverse proxy capability available and set up on your website.

See this article for a general overview of reverse proxying your William blog.


Check out the NGINX example

Step 1. Add your subfolder proxy entry in nginx.conf

Step 2. Open your nging.conf file and add the following entry

server {
listen 80;
...

location /blog/ {
proxy_pass https://MYCOMPANY.storychief.io/;
proxy_set_header Host MYCOMPANY.storychief.io;
proxy_set_header X-Referrer StoryChief;
}
...
}

The script is rewriting every incoming URL from https://MYWEBSITE.com/blog/* to https://MYCOMPANY.storychief.io.
It also appends a header "X-Referrer": "StoryChief" to the request so StoryChief knows to handle it as a reversed proxy domain.

Step 3. Restart NGINX


πŸ“š Next steps

Did this answer your question?