I installed cockpit in a subfolder on example.com/static
in /var/www/sites//example.com/ I have a simlink which goes to /var/www/sites/static/
I override the defines in the defines.php and get this
COCKPIT_DIR : /var/www/sites/static
COCKPIT_ADMIN: 0
COCKPIT_DOCS_ROOT: /var/www/sites/static
COCKPIT_ENV_ROOT : /var/www/sites/static
COCKPIT_BASE_URL : ./static
COCKPIT_API_REQUEST : 0
COCKPIT_BASE_ROUTE : /static
COCKPIT_SITE_DIR :/var/www/sites/static
COCKPIT_CONFIG_DIR : /var/www/sites/static/config
COCKPIT_PUBLIC_STORAGE_FOLDER : /var/www/sites/static/storage
COCKPIT_ADMIN_CP: 0
COCKPIT_CONFIG_PATH : /var/www/sites/static/config/config.yaml
COCKPIT_STORAGE_FOLDER :/var/www/sites/static/storage
The install goes well and says it’s completed, but I can see the links to the assets are already giving a 404.
Then in the login page, All the links to the assets are like this
https://example.com/storage/tmp/assets/1056f89eef2a03d1ca3f6c78ad8c49e4.js?ver=0.9.2
I’m missing the /static subfolder and get the { error } on the login page