Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Create virtualhost.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
rizalkun authored Feb 27, 2017
1 parent 826d279 commit 35e50c8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ocs_panel/virtualhost.conf
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 35e50c8

Please sign in to comment.