Accessible directory

Hi all the gurus

I just managed to setup ghost (self host), with environments as follow: Ubuntu, Apache, MariaDB, Node’s 18.x and also managed to install ghost with: ghost install (ghost 5.82.1) - my not to fancy site: https://ic3blue.com/

I also would like to host Clamav database cvdupdate e.g. https://ic3blue.com/clamavcvd - I managed to make it work with Wordpress, but not with ghost

Below is the snippet of my conf setting:

ServerName ic3blue.com

DocumentRoot /var/www/ghost/

    Alias "/clamavcvd/"  "/var/www/testing/"

    <Directory "/var/www/testing/">
       Options All
       Require all granted
       AllowOverride All
       Order allow,deny
       allow from all
    </Directory>

    <Directory /var/www/ghost/>
        Options Multiviews FollowSymlinks
        DirectoryIndex index.php index.html
        AllowOverride All
        Require all granted
        Satisfy Any
    </Directory>

ErrorLog ${APACHE_LOG_DIR}/ghost_error.log
CustomLog ${APACHE_LOG_DIR}/ghost_access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/ic3blue.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ic3blue.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:2368/
ProxyPassReverse / http://127.0.0.1:2368/
RequestHeader set X-Forwarded-Proto “https”

Can somebody help me please :slight_smile:

Thank you

It’s always helpful if you can post in what way something is not working, including any error messages.

BTW, in case you’re not aware, MariaDB is not officially supported since 5.x, and you may have issues running a Ghost version that high on it. (It was around 5.25 that there was something breaking with Maria, but it’s possible that 5.81 runs - not sure.)

Thank you for your reply, ghost gave me 404 page not found

The reason I used MariaDB is because my old setting with Wordpress

With Wordpress, I can access the directory and the clamav database is listed. With ghost (same setting of Alias), it gave me error 404

So I don’t do Apache, but it looks like you’re telling it to serve files from a Ghost directory. That doesn’t work. Instead, you need to set up Apache to act as a proxy for your Ghost server, and let the Ghost server (Node) do its thing.

This is older, but might help get you started: Ghost in Subdirectory on Apache2 - #3 by Hannah

Hi Cathy

I already read the link that you provided and still not successful

At the end, I rebuild my server, the environments now: Ubuntu, Nginx, mysql, nodejs 18.x and current ghost.

Now, I can managed to host the clamav database, yay :slight_smile:

My other question is: regarding of Mailgun - get my heads in - perhaps I should publish a new post?

1 Like