Skip to content
Snippets Groups Projects
Select Git revision
  • eckbalu-master-patch-41181
  • master default protected
  • schwifi
  • halof
  • our-team
  • 0.12.9 protected
  • 0.12.8 protected
  • 0.12.7 protected
  • 0.12.6 protected
  • 0.12.5 protected
  • 0.12.4 protected
  • 0.12.3 protected
  • 0.12.2 protected
  • 0.12.1 protected
  • 0.12.0 protected
  • 0.11.5 protected
  • 0.11.4 protected
  • 0.11.3 protected
  • 0.11.2 protected
  • 0.11.1 protected
  • 0.11.0 protected
  • 0.10.6 protected
  • 0.10.5 protected
  • 0.10.4 protected
  • 0.10.3 protected
25 results

nginx.conf

Blame
  • Laszlo Rafael's avatar
    Rafael László authored
    e900f6ac
    History
    nginx.conf 1005 B
    server {
        listen       80;
        listen  [::]:80;
        server_name  localhost;
        
        root   /usr/share/nginx/html;
    
        rewrite ^/wp-content/uploads/2022/02/.* $scheme://$http_host/documents/szabalyzat-2022-1.pdf last;
        rewrite ^/[0-9]+/[0-9]+/[0-9]+/(.+) $scheme://$http_host/articles/$1 redirect;
    
        location / {
            index  index.html index.htm;
    
             # kill cache
            add_header Last-Modified $date_gmt;
            add_header Cache-Control 'no-store, no-cache';
            if_modified_since off;
            expires off;
            etag off;
        }
    
        # Media: images, icons, video, audio, HTC
        location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
            expires 1M;
            access_log off;
            add_header Cache-Control "public";
        }
    
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /usr/share/nginx/html;
        }
    
        error_page   404  /404.html;
        location = /404.html {
            root   /usr/share/nginx/html;
        }
    }