It seems like you're facing a couple of issues after switching from HTTP to HTTPS. Let's address them one by one:
- Access Denied to
/storageURL: The issue might not be directly related to FilamentPHP but rather to your web server configuration or Laravel's filesystem configuration. Since you've already set the correct permissions and ownership, and recreated the storage link, let's ensure that your web server is correctly configured to serve the/storagedirectory.
For Apache, make sure you have an .htaccess file with the following content in your public directory:
<IfModule mod_rewrite.c>
RewriteEngine On
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
# Handle Storage Directory
<Directory "/path/to/your/project/public/storage">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Replace /path/to/your/project with the actual path to your Laravel project.
For Nginx, you should have a configuration block in your site's configuration file that allows access to the storage directory:
location /storage {
alias /path/to/your/project/public/storage;
try_files $uri $uri/ /index.php?$query_string;
}
Again, replace /path/to/your/project with the actual path to your Laravel project.
- Broken CSS on the login page:
This could be due to the
ASSET_URLnot being set correctly. Since you're now using HTTPS, you need to ensure that all assets are loaded over HTTPS to avoid mixed content issues.
In your .env file, you should set the ASSET_URL to the full URL of your application:
ASSET_URL=https://domain.com/public
After making these changes, clear the configuration cache:
php artisan config:clear
And then, regenerate the symbolic link to the storage directory:
php artisan storage:link
Make sure that your web server has restarted after making these changes to ensure that the new configuration is applied.
If you continue to experience issues, check the web server error logs for more specific error messages that can help you troubleshoot the problem.