vps.conf 495 B

1234567891011121314151617181920
  1. server {
  2. listen 81;
  3. server_name 127.0.0.1 localhost;
  4. access_log /var/log/nginx/vps-access.log;
  5. error_log /var/log/nginx/vps-error.log error;
  6. root /home/vps/public_html;
  7. location / {
  8. index index.html index.htm index.php;
  9. try_files $uri $uri/ /index.php?$args;
  10. }
  11. location ~ \.php$ {
  12. include /etc/nginx/fastcgi_params;
  13. fastcgi_pass 127.0.0.1:9000;
  14. fastcgi_index index.php;
  15. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  16. }
  17. }