include /etc/nginx/lcwm2/vhost_static.conf; if ($scheme = http) { return 301 https://$server_name$request_uri; } # location ~ \.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|wmv|wma|mp3|mpg|avi|mpeg|mp4|divx)$ { # index index.html index.htm index.php index.shtml; # access_log off; # expires 14d; # try_files $uri @apache; # proxy_cache PROXY; # proxy_cache_valid 200 302 1d; # proxy_cache_valid 404 30m; # proxy_cache_valid any 10m; # proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; # } # error_page 500 502 503 504 /50x.html; # location = /50x.html { # root html; # } # location ~ /\.ht { # deny all; # }