Adding a custom html subfolder (myghostblog.com/customfolder)

Hi,

I’m new to ghost (just complete my first install and migration from wordpress)

my ghost blog is accessible from directly from the domain www.domain.com but I want to create a folder accessible via www.domain.com/folder which will have some custom html but independent from my ghost blog. I have created the folder on the server with an index.html page in it but when I go to www.domain.tld/folder I get a 404 page from my ghost blog. How can I achieve this (making ghost ignore the routing for that particular folder) ?

thanks
EDIT : I’m on a apache server

Are you using Apache as a reverse proxy? You’ll need to tell it to serve the files in /folder directly. This isn’t really a Ghost question - it’s a reverse proxy configuration question. :)

Most folks here who self-host run Nginx as the reverse proxy (and that’s what most of the tutorials and the default install walk you through), but if you’re stumped after Googling how to set up Apache with a folder and a reverse proxy, perhaps someone here can help. It would be a good idea to post your (redacted) config file for the reverse proxy.

thank you, I wasn’t sure if it could be done via routing config in ghost or apache vhosts.

here are my vhost configuration (http & https)

<VirtualHost *:80>
    ServerAdmin webmaster@domain.tld
    ServerName www.domain.tld
    ServerAlias domain.tld
    DocumentRoot /var/www/domain

    <Directory /var/www/domain>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
     </Directory>

    ProxyRequests off 
    ProxyPass / http://127.0.0.1:2368/ 
    ProxyPassReverse / http:/127.0.0.1:2368/

</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerAdmin webmaster@domain.tld
    ServerName www.domain.tld
    ServerAlias domain.tld
    DocumentRoot /var/www/domain

    <Directory /var/www/domain>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
     </Directory>

    RequestHeader set X-Forwarded-Proto "https"

    <Location "/">
        ProxyPreserveHost On
        ProxyPass http://127.0.0.1:2368/
        ProxyPassReverse http://127.0.0.1:2368/
    </Location>

    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/domain.tld/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/domain.tld/privkey.pem

</VirtualHost>
</IfModule>