-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnginx_default.conf
74 lines (60 loc) · 2 KB
/
nginx_default.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
resolver 127.0.0.11 valid=15s;
server {
root /var/www/html;
server_name ficus-home.duckdns.org;
underscores_in_headers on;
location / {
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
root /var/www/html/laravel-auth/public;
index index.php;
try_files $uri /index.php?$query_string;
location = /index.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_keep_conn on;
fastcgi_param HTTPS 'on';
fastcgi_pass php-fpm-laravel:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* \.(png|gif|jpg|jpeg|ico|css|js|woff|ttf|otf|woff2|eot)$ {
include /etc/nginx/mime.types;
expires max;
try_files $uri /index.php?$query_string;
}
client_max_body_size 100M;
}
# subdirectory for phpmyadmin pages
location ^~ /phpmyadmin {
alias /var/www/html/phpmyadmin;
try_files $uri $uri/ @phpmyadmin;
index index.php;
location ~ \.php$ {
fastcgi_split_path_info ^\/phpmyadmin\/(.+\.php)(.*)$;
fastcgi_param HTTPS 'on';
fastcgi_pass phpmyadmin-fpm:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
}
}
location @phpmyadmin {
rewrite /phpmyadmin/(.*)$ /phpmyadmin/index.php?/$1 last;
}
location ^~ /flexisip-account-manager {
alias /var/www/html/flexisip-account-manager/xmlrpc;
try_files $uri $uri/ @flexisip-account-manager;
index xmlrpc.php;
location ~ \.php$ {
fastcgi_split_path_info ^\/flexisip-account-manager\/(.+\.php)(.*)$;
fastcgi_param HTTPS 'on';
fastcgi_pass php-fpm-laravel:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
location @flexisip-account-manager {
rewrite /flexisip-account-manager/(.*)$ /flexisip-account-manager/xmlrpc.php;
}
listen 80;
}