• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Issue Server Session/ cache issue ?

lukebrenner

New Pleskian
Hi there,
I have a website which uses user authentication. UNLESS I put the following directive in my .htaccess file in root, the user is NOT logged out.

ExpiresActive On
ExpiresDefault "access plus 1 second"


I guess this is not normal, somehow my server is not set up properly by default.

Here's the configuration:

VPS hosted at hosteurope.de
Plesk Onyx 17.0.17 with update #21 (upgraded from 12.5 but it behaved like that too in 12.5)
CentOS Linux 7.3.1611 (Core)
PHP 7.0.17 with default values ( except Short Open Tag ON )


I have the following HTTPS additional directives in my apache:

Header unset ETag
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Content-Security-Policy "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
Header always set X-Xss-Protection "1; mode=block"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy: origin-when-cross-origin
Header set X-WebKit-CSP: "default-src 'self'"
Header set X-Permitted-Cross-Domain-Policies: "master-only"
Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure



and the following for HTTP :

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,QSA]
</IfModule>


Web application firewall is enabled, with the default Atomic Basic Mod security rule set enabled.

Any help is appreciated.
Thank you.
 
Last edited:
I forgot to mention, PHP is running in FPM mode, please see the attached images for Apache and PHP enabled modules.
 

Attachments

  • 2017-03-31 09_54_52-Apache Web Server Settings - Plesk Onyx 17.0.17.jpg
    2017-03-31 09_54_52-Apache Web Server Settings - Plesk Onyx 17.0.17.jpg
    106.1 KB · Views: 9
  • 2017-03-31 09_56_12-Settings for 7.0.17 FPM application - Plesk Onyx 17.0.17.jpg
    2017-03-31 09_56_12-Settings for 7.0.17 FPM application - Plesk Onyx 17.0.17.jpg
    41.9 KB · Views: 8
Back
Top