30 lines
818 B
Plaintext
30 lines
818 B
Plaintext
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name fusionpbx;
|
||
|
|
|
||
|
|
error_log /var/log/nginx/error.log info;
|
||
|
|
access_log /var/log/nginx/access.log;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
root /usr/local/www/fusionpbx;
|
||
|
|
index index.php index.html index.htm;
|
||
|
|
}
|
||
|
|
|
||
|
|
error_page 500 502 503 504 /50x.html;
|
||
|
|
location = /50x.html {
|
||
|
|
root /usr/local/www/nginx-dist;
|
||
|
|
}
|
||
|
|
|
||
|
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||
|
|
location ~ \.php$ {
|
||
|
|
fastcgi_pass 127.0.0.1:9000;
|
||
|
|
fastcgi_index index.php;
|
||
|
|
fastcgi_param SCRIPT_FILENAME /usr/local/www/fusionpbx$fastcgi_script_name;
|
||
|
|
include fastcgi_params;
|
||
|
|
}
|
||
|
|
|
||
|
|
location ~ /\.ht {
|
||
|
|
deny all;
|
||
|
|
}
|
||
|
|
}
|