Hi all We have machine with nginx running on port 80 behind a hardware load balancer which has the ssl binded. Hence https is in load balancer and requests are transfered to nginx on port 80. No access without https. Nginx is configured with logs with loadbalancer format which ensures source ip is also transfered to nginx and same is getting logged in logs. We need to apply deny for cerby rgrraj - How to...
Hi Thank you all for the suggestions and thoughts. I did double check the nginx version I am having and it is 1.9.2. root@ser2:~# nginx -V nginx version: nginx/1.9.2 built by gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) configure arguments: --add-module=/tmp/nginx/ngx_http_substitutions_filter_module-master --add-module=/tmp/nginx/headers-more-nginx-module-0.26 --add-module=/tmp/nginx/ngby rgrraj - Nginx Mailing List - English
Hi Francis The same works like a charm in 1.9.6 but not in 1.9.2. The error log shows the follow, " 6151#0: "expires" directive invalid value in" respective sites enabled file. And our configuration is just as follows, ## in nginx.conf map $time_iso8601 $expiresc { default "3h"; ~T22 "@00h00"; ~T23 "@00h00";by rgrraj - Nginx Mailing List - English
HI Francis Thanks for the same. It works fine in 1.9.6. But on 1.9.2 with similar configruation its throwing "expires" directive invalid value in sites-enabled file. Any thoughts ? Thanks Govindby rgrraj - Nginx Mailing List - English
HI All The topic was the same one I was looking for. But we have specific idea of setting up the expire value. We need expires to be at every 2h hours at the same time to be on every 24hours, ie: midnight. Can you help me with how to configure the same with 2h as well as for midnight night. reason is that cdn purge happens at every midnight so if an end use access the page at might 10.50pmby rgrraj - Nginx Mailing List - English
Hi I am trying set a value for expire with a combination in my nginx configuration. we need to set expire for objects in a specified location of nginx configuration to have expire at every 2 hours and also at 24hours. As of now the configuration looks as follows, location ~* "^.+\.(jpe?g|gif|css|png|js|ico|pdf|zip|tar|t?gz|mp3|wav|swf)$" { expires 2h; add_header Cachby rgrraj - How to...
![]() |
![]() |
![]() |
![]() |
|