Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443;
- server_name localhost;
- ssl on;
- ssl_certificate /home/ubuntu/certs/startssl/ssl-unified.crt;
- ssl_certificate_key /home/ubuntu/certs/startssl/ssl.key;
- keepalive_timeout 70;
- #ssl_session_timeout 5m;
- ssl_protocols SSLv2 SSLv3 TLSv1;
- #ssl_ciphers HIGH:!aNULL:!MD5;
- #ssl_prefer_server_ciphers on;
- root /home/ubuntu/programming/YanlJ;
- index index.php index.html;
- location / {
- #try_files $uri $uri/ /index.php; # this line was causing the index.php file to be loaded twice...
- }
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- # With php5-cgi alone:
- #fastcgi_pass 127.0.0.1:9000;
- # With php5-fpm:
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- try_files $uri $uri.php $uri.html =404;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement