Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aggvpn
GitHub Repository: aggvpn/ws
Path: blob/main/vps.conf
567 views
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
8
location / {
9
index index.html index.htm index.php;
10
try_files $uri $uri/ /index.php?$args;
11
}
12
13
location ~ \.php$ {
14
include /etc/nginx/fastcgi_params;
15
fastcgi_pass 127.0.0.1:9000;
16
fastcgi_index index.php;
17
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
18
}
19
}
20
21