skip to Main Content

Session id always changing for ASP.NET Core + Redis + nginx

The sample project https://github.com/xingyu217/Redis-nginx-aspnetcore-session nginx.config: upstream study_server{ server localhost:8011 weight=1; server localhost:8013 weight=1; #server localhost:8014 weight=1; #server 172.17.16.147:8012 weight=2; #server 172.17.16.147:8011 weight=2; } server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { #root html; #index…

VIEW QUESTION

Laravel API route get 404 on Nginx – CentOS

I have a Laravel project. It works on Mac os with nginx. I recentlly installed a CentOs 8. I installed Nginx on it and add the configuration bellow: server { listen 8001; server_name _; root /usr/share/nginx/html/reservation_laravel/public; add_header X-Frame-Options "SAMEORIGIN"; add_header…

VIEW QUESTION

How to enable browser cache on nginx? – Plesk

I tried to analyze web speed with PageSpeed Insights and Google told me that I need to enable cache. So I added to my .htaccess: <IfModule mod_expires.c> <FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|svg|webp|js|css|swf|gz|json)$"> ExpiresActive On ExpiresDefault A604800 </FilesMatch> </IfModule> <IfModule mod_headers.c> <FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|svg|webp|js|css|swf|gz|json)$"> Header…

VIEW QUESTION
Back To Top
Search