Advertisement
Guest User

Untitled

a guest
Jul 8th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #servidor em http normal
  2. server {
  3. listen 80 default_server;
  4. listen 443 ssl;
  5.  
  6. root /usr/share/nginx/html;
  7. index index.php index.html index.htm;
  8.  
  9. #ssl on;
  10. ssl_certificate /srv/ssl/cert/crialojas.full.crt;
  11. ssl_certificate_key /srv/ssl/star_crialojas_com.key;
  12.  
  13. # Make site accessible
  14. server_name crialojas.com
  15.  
  16. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  17. location ~ \.php$ {
  18. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  19. fastcgi_pass unix:/var/run/php5-fpm.sock;
  20. fastcgi_index index.php;
  21. fastcgi_param HTTPS on;
  22. include fastcgi_params;
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement