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