Last active
October 1, 2015 02:38
-
-
Save Gipetto/1904153 to your computer and use it in GitHub Desktop.
Alternate OpenVBX nginx server config. Slightly different than the sample included with OpenVBX right now and working on my nginx 0.8.54 + PHP 5.3.5 install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name openvbx.tld; | |
access_log /var/www/logs/access.log; | |
error_log /var/www/logs/error.log; | |
location /(favicon.ico|robots.txt) { | |
access_log off; | |
log_not_found off; | |
error_page 404 /404; | |
expires 30d; | |
add_header Cache-Control public; | |
} | |
location / { | |
root /path/to/OpenVBX; | |
index index.php | |
try_files $uri $uri/ /index.php?vbxsite=$uri&$query_string; | |
} | |
location ~\.php$ { | |
include /etc/nginx/fastcgi_params; | |
proxy_pass_header Set-Cookie; | |
fastcgi_pass_header Set-Cookie; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME /var/www/OpenVBX/$fastcgi_script_name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above doesn't work...
All that needs to be done is pasting this location directive above php directive: