forked from joselfonseca/docker-nginx-php-73
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault
More file actions
executable file
·63 lines (49 loc) · 1.6 KB
/
default
File metadata and controls
executable file
·63 lines (49 loc) · 1.6 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
server {
listen 80;
root /var/www/html;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ =404;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
sendfile off;
client_max_body_size 100m;
location ^~ /ovy {
alias /var/www/ovy/public;
try_files $uri $uri/ @ovy;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
location @ovy {
rewrite /ovy/(.*)$ /ovy/index.php?/$1 last;
}
location ~* ^\/(horizon|vendor).* {
alias /var/www/ovy/public;
try_files $uri $uri/ @tools;
}
location @tools {
if ( $request_uri ~ ^\/horizon ) {
rewrite ^/(.*)$ /ovy/index.php?/$1 last;
}
rewrite ^/(.*)$ /ovy/$1 last;
}
location ~ \.php$ {
root /var/www/html;
fastcgi_pass 127.0.0.1:9002;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
error_page 404 /index.php;
location ~ /.ht {
deny all;
}
}