gempir

nginx conf

May 3rd, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1.  
  2. server {
  3. listen 80;
  4.  
  5. root /home/gempir/multichat;
  6.  
  7. index index.php index.html index.htm index.nginx-debian.html;
  8.  
  9. server_name multichat.gempir.com;
  10.  
  11. location / {
  12. try_files $uri $uri/ =404;
  13. }
  14.  
  15. location ~ \.php$ {
  16. try_files $uri =404;
  17. fastcgi_pass unix:/var/run/php5-fpm.sock;
  18. fastcgi_index index.php;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. include fastcgi_params;
  21. }
  22.  
  23. }
  24.  
  25. server {
  26. listen 443 ssl;
  27. server_name multichat.gempir.com;
  28. return 301 http://$host$request_uri;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment