Advertisement
voodooKobra

nginx vhost

Aug 9th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. server {
  2. listen 443 ssl; ## listen for ipv4; this line is default and imp$
  3. #listen [::]:80 default_server ipv6only=on; ## listen for ipv6
  4.  
  5. ssl on;
  6. ssl_certificate /etc/ssl/tls.cert;
  7. ssl_certificate_key /etc/ssl/private/tls.key;
  8. ssl_session_timeout 5m;
  9. # THIS ONLY SUPPORTS 1.1 AND 1.2:
  10. ssl_protocols TLSv1.1 TLSv1.2;
  11.  
  12. include /etc/nginx/sslciphers.conf;
  13.  
  14. ssl_prefer_server_ciphers on;
  15. server_name configtest.arciszewski.me;
  16. root /var/www/tlstest;
  17. index index.php index.html;
  18.  
  19. location / {
  20. try_files $uri $uri/ =404;
  21. include /etc/nginx/php.conf;
  22. }
  23. location ~ ^/?$ {
  24. try_files $uri $uri/ index.php =404;
  25. include /etc/nginx/php.conf;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement