62 lines
1.4 KiB
Nginx Configuration File
62 lines
1.4 KiB
Nginx Configuration File
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80 ipv6only=on;
|
||
|
|
||
|
# return 301 https://$host$request_uri;
|
||
|
#}
|
||
|
|
||
|
#server {
|
||
|
# listen 443 ssl;
|
||
|
|
||
|
ssl_certificate /letsencrypt/fullchain.pem;
|
||
|
ssl_certificate_key /letsencrypt/privkey.pem;
|
||
|
|
||
|
ssl_protocols TLSv1.1 TLSv1.2;
|
||
|
|
||
|
index index.php index.html;
|
||
|
|
||
|
server_name tao.docker;
|
||
|
|
||
|
error_log /var/log/nginx/error.log;
|
||
|
access_log /var/log/nginx/access.log;
|
||
|
|
||
|
root /var/www/html;
|
||
|
|
||
|
location ~ ^/([^//]*)/(views|locales)/. {}
|
||
|
|
||
|
location /tao/install {}
|
||
|
|
||
|
location /tao/getFileFlysystem.php {
|
||
|
rewrite ^(.*)$ /tao/getFileFlysystem.php last;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
rewrite ^(.*)$ /index.php;
|
||
|
}
|
||
|
|
||
|
location = /favicon.ico { access_log off; log_not_found off; }
|
||
|
location = /robots.txt { access_log off; log_not_found off; }
|
||
|
|
||
|
sendfile off;
|
||
|
|
||
|
client_max_body_size 100m;
|
||
|
|
||
|
location ~ \.php$ {
|
||
|
try_files $uri =404;
|
||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||
|
fastcgi_pass tao_phpfpm:9000;
|
||
|
fastcgi_index index.php;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||
|
|
||
|
fastcgi_intercept_errors off;
|
||
|
fastcgi_buffer_size 16k;
|
||
|
fastcgi_buffers 4 16k;
|
||
|
fastcgi_connect_timeout 300;
|
||
|
fastcgi_send_timeout 300;
|
||
|
fastcgi_read_timeout 300;
|
||
|
}
|
||
|
}
|
||
|
|