Attempting to Install Cockpit within a subdirectory

Hi! I learned about Cockpit CMS a few weeks back and have been trying to install it on a digital ocean droplet using apache2 & php 7.2 following this tutorial with minor modifications

The modifications I made were:

  • my conf is named with my domain

  • My conf also looks like this:
    <VirtualHost *:80>
    ServerAdmin email@email.com
    DocumentRoot /var/www/my_domain/
    ServerName my_domain.com
    ServerAlias www.my_domain.com

    <VirtualHost *:8080>
    DocumentRoot /var/www/my_domain/dashboard/
    ServerAlias www.my_domain.com/dashboard
    ServerPath /dashboard/
    <Directory /var/www/my_domain/dashboard/>
    Options FollowSymlinks
    AllowOverride All
    Require all granted

    ErrorLog {APACHE_LOG_DIR}/error.log CustomLog {APACHE_LOG_DIR}/access.log combined

    <Directory /var/www/my_domain/dashboard/>
    RewriteEngine On
    RewriteBase /dashboard/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*) index.php [PT,L]

The behavior I’ve been getting is:

  • Install will load properly
  • auth/login will 404

There waas a period of an hour where the dashboard would properly display, but none of the links within it would work (i.e. my_domain/dashboard/collections would return a 404)

I really hope someone can help me because cockpit seems perfect for what I want to do. If there’s anymore information you need, please let me know. Thank you in advance!