diff --git a/ocs_panel/virtualhost.conf b/ocs_panel/virtualhost.conf new file mode 100644 index 0000000..aec3506 --- /dev/null +++ b/ocs_panel/virtualhost.conf @@ -0,0 +1,19 @@ +server { + listen 2133; + server_name 127.0.0.1 localhost; + access_log /var/log/nginx/vps-access.log; + error_log /var/log/nginx/vps-error.log error; + root /home/ocs/public_html; + + location / { + index index.html index.htm index.php; + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + include /etc/nginx/fastcgi_params; + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } +}