Skip to content

Commit c4ab74a

Browse files
author
Adam Ballai
committed
Add nginx.conf sample support
1 parent 13269f5 commit c4ab74a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

support/nginx.conf

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
server {
2+
listen 80;
3+
server_name openvbx.boto;
4+
access_log /var/www/logs/access.log;
5+
error_log /var/www/logs/error.log;
6+
7+
location / {
8+
root /var/www/OpenVBX;
9+
index index.php;
10+
11+
if (-f $request_filename) {
12+
break;
13+
}
14+
15+
if (-d $request_filename) {
16+
break;
17+
}
18+
rewrite ^(.*)$ /index.php?vbxsite=$1 last;
19+
}
20+
21+
location ~ \.php$ {
22+
include /etc/nginx/fastcgi_params;
23+
proxy_pass_header Set-Cookie;
24+
fastcgi_pass_header Set-Cookie;
25+
fastcgi_pass 127.0.0.1:9000;
26+
fastcgi_index index.php;
27+
fastcgi_param SCRIPT_FILENAME /var/www/OpenVBX/$fastcgi_script_name;
28+
}
29+
}

0 commit comments

Comments
 (0)