Comment on page

How to connect a sub-path to your blog?

You can establish subdirectory on TypeStack using Nginx configuration.
To use this feature, you need to upgrade to our premium plan that helps you to connect to your own domain and/or to a subdirectory.

For Ngnix configuration

server {
listen 80;
server_name <>; # Replace with your domain
# include any global or shared config
# include /etc/nginx/conf/your-config-here.conf;
# redirect to SSL
return 301 https://$host$request_uri;
server {
listen 443 ssl default_server;
server_name <>; # Replace with your domain
# Your SSL Certificate details. Replace with your own SSL setup
# ssl_certificate /path/to/cert;
# ssl_certificate_key /path/to/key;
location /blog/ {
proxy_http_version 1.1;
proxy_set_header x-base-url "https://<yoursubdomain>/...";

For Apache Configuration

Commands to runsudo a2enmod ssl proxy proxy_http headers rewrite
sudo service apache2 restart
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Enable ssl proxy engine
SSLProxyEngine on
<Location "/blog">