This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Compr0mzd
Compr0mzd

Hello everyone I wanted to use HSTS in my Nginx config running OctoberCMS. When I'm accessing my website it is downloading this PHP file :

<?php
/**
 * October - The PHP platform that gets back to basics.
 *
 * @package  October
 * @author   Alexey Bobkov, Samuel Georges
 */

/*
|--------------------------------------------------------------------------
| Register composer
|--------------------------------------------------------------------------
|
| Composer provides a generated class loader for the application.
|
*/

require __DIR__.'/bootstrap/autoload.php';

/*
|--------------------------------------------------------------------------
| Load framework
|--------------------------------------------------------------------------
|
| This bootstraps the framework and loads up this application.
|
*/

$app = require_once __DIR__.'/bootstrap/app.php';

/*
|--------------------------------------------------------------------------
| Process request
|--------------------------------------------------------------------------
|
| Execute the request and send the response back to the client.
|
*/

$kernel = $app->make('Illuminate\Contracts\Http\Kernel');

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);

It happen only when I'm logged in backend. I tried disabling HSTS, nginx restart, empty my browser cache, change browser but it is not working properly I don't understand how can I fix this. Any idea would be appreciated

Last updated

Compr0mzd
Compr0mzd

Ok I have checked my nginx config and I can this happened when I commented : fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.