server {
listen 443;
root /var/www/html/;
index index.html index.php;
location / {
try_files $uri $uri/ =404;
}
ssl on;
ssl_certificate ssl/cert.crt;
ssl_certificate_key ssl/cert.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
access_log /var/log/nginx/log_https_access.log;
error_log /var/log/nginx/log_https_error.log;
location ~ ^/saml(.+\.php.*)$ {
alias /var/www/html/simplesamlphp/www/$1;
# fastcgi_split_path_info ^(.+\/module\.php)(/.+)$;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/saml(.*) {
alias /var/www/html/simplesamlphp/www/$1;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
add_header Cache-control no-cache;
}
location ~ \.html$ {
add_header Cache-control no-cache;
}
}