Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl; ## listen for ipv4; this line is default and imp$
- #listen [::]:80 default_server ipv6only=on; ## listen for ipv6
- ssl on;
- ssl_certificate /etc/ssl/tls.cert;
- ssl_certificate_key /etc/ssl/private/tls.key;
- ssl_session_timeout 5m;
- # THIS ONLY SUPPORTS 1.1 AND 1.2:
- ssl_protocols TLSv1.1 TLSv1.2;
- include /etc/nginx/sslciphers.conf;
- ssl_prefer_server_ciphers on;
- server_name configtest.arciszewski.me;
- root /var/www/tlstest;
- index index.php index.html;
- location / {
- try_files $uri $uri/ =404;
- include /etc/nginx/php.conf;
- }
- location ~ ^/?$ {
- try_files $uri $uri/ index.php =404;
- include /etc/nginx/php.conf;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement