Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Nginx | fastcgi_cache_key $http_cookie for Joomla (no replies)

$
0
0
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/

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>