Based on Solving my problem! Since the proxy uses HTTPS and Laravel uses HTTP Request as default you may try to configure it to HTTPS.
Like this
config/app.php
'url' => env('APP_URL', 'https://www.mydomain.com/'),
'asset_url' => env('ASSET_URL', 'https://www.mydomain.com/'),
.env
APP_NAME=XX
APP_ENV=XXX
APP_KEY=base64:XXX
APP_DEBUG=true
APP_URL=https://www.mydomain.com/
app/Providers/AppServiceProvider.php
public function boot()
{
if (env('APP_ENV') !== 'local') {
$this->app['request']->server->set('HTTPS', true);
}
}
routes/web.php
At the beginning of codes add this;
URL::forceRootUrl('https://www.mydomain.com/');
After doing this, your CSS/JS will be loaded as HTTPS not HTTP anymore.
If you run a VPS or dedicated server with Linux, you probably know that managing…
Short summary: Use built-in Linux tools (`who`, `last`, `journalctl`, `/var/log/auth.log`) and optional audit logs to…
Whether you're a new Linux user or a beginner sysadmin, mastering the terminal is a…
Choosing the right Content Management System (CMS) is key when you're building a blog, portfolio,…
Securing your Linux server is a critical task for every sysadmin. One of the simplest…
As a Linux system administrator, understanding what happens on your network is crucial. One of…
This website uses cookies.