Advertisement
Guest User

Untitled

a guest
May 31st, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. server {
  2. listen 443;
  3. server_name localhost;
  4.  
  5. ssl on;
  6. ssl_certificate /home/ubuntu/certs/startssl/ssl-unified.crt;
  7. ssl_certificate_key /home/ubuntu/certs/startssl/ssl.key;
  8.  
  9. keepalive_timeout 70;
  10.  
  11. #ssl_session_timeout 5m;
  12.  
  13. ssl_protocols SSLv2 SSLv3 TLSv1;
  14. #ssl_ciphers HIGH:!aNULL:!MD5;
  15. #ssl_prefer_server_ciphers on;
  16.  
  17. root /home/ubuntu/programming/YanlJ;
  18. index index.php index.html;
  19.  
  20. location / {
  21. #try_files $uri $uri/ /index.php; # this line was causing the index.php file to be loaded twice...
  22. }
  23.  
  24. location ~ \.php$ {
  25. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  26. # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  27.  
  28. # With php5-cgi alone:
  29. #fastcgi_pass 127.0.0.1:9000;
  30. # With php5-fpm:
  31. fastcgi_pass unix:/var/run/php5-fpm.sock;
  32. fastcgi_index index.php;
  33. include fastcgi.conf;
  34. }
  35.  
  36. try_files $uri $uri.php $uri.html =404;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement