Welcome! Log In Create A New Profile

Advanced

Nginx | fastcgi_cache_key $http_cookie for Joomla

August 16, 2016 09:50AM
So i found the following for Drupal https://forum.nginx.org/read.php?2,220510,220563#msg-220563

http {
map $http_cookie $session_id {
default '';
~SESS(?<session_guid>[[:alnum:]]+) $session_guid;
}
}

server {
location ~ \.php$ {
fastcgi_cache_key $session_cookie$request_method$scheme$host$request_uri;
}
}

And want to implement it for Joomla but Joomla's cookies regex do not contain "SESS", Wanted some help to modify this for a Joomla environment so the pages cached and served when registered users are logged in they will only receive their own pages because of the cookie matching with the key.

Example Joomla based site that session cookie format can be seen. http://www.networkflare.com/
Subject Author Posted

Nginx | fastcgi_cache_key $http_cookie for Joomla

c0nw0nk August 16, 2016 09:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready