-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprima.conf
39 lines (32 loc) · 1.09 KB
/
prima.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html/PRIMA/web;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
# try to serve file directly, fallback to front controller
try_files $uri /index.php$is_args$args;
# root /usr/share/nginx/html;
# index index.html index.htm;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ ^/index\.php(/|$) {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
#return 404 for all php files as we do have a front controller
location ~ \.php$ {
return 404;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}