Advertisement
ngokchjnh109

Untitled

Aug 21st, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #
  2. # nguyenanhchinh.com configuration
  3. #
  4. server {
  5. listen 80;
  6. server_name nguyenanhchinh.com;
  7.  
  8. location / {
  9. root /home/nguyenanhchinh.com/public_html;
  10. index index.php index.html index.htm;
  11. try_files $uri $uri/ /index.php?q=$uri&$args;
  12. }
  13.  
  14. error_page 404 /404.html;
  15. location = /404.html {
  16. root /home/nguyenanhchinh.com/public_html;
  17. }
  18.  
  19. error_page 500 502 503 504 /50x.html;
  20. location = /50x.html {
  21. root /home/nguyenanhchinh.com/public_html;
  22. }
  23.  
  24. # pass the PHP scripts to FastCGI server
  25. #
  26. location ~ \.php$ {
  27. root /home/nguyenanhchinh.com/public_html;
  28. fastcgi_pass 127.0.0.1:9000;
  29. fastcgi_index index.php;
  30. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31. include fastcgi_params;
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement