#w0bm.com server { server_name w0bm.local; listen 8090; #listen [::]:8443 ssl proxy_protocol; http2 on; root /opt/w0bm/public; allow all; index index.php; try_files $uri $uri/ /index.php?$args; access_log off; client_max_body_size 500M; #add_header 'Access-Control-Allow-Origin' '*'; location = /database/cNsH4YbaKtwQWsKQk47LVAEJTyt3yi6Cz2npPF9izxJ8q7GWg.php { auth_basic "Restricted Area"; auth_basic_user_file /etc/nginx/.htpasswd; fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/run/php/php7.1-fpm.sock; } location /api/video/upload { client_max_body_size 500M; fastcgi_param PHP_VALUE "upload_max_filesize=500M \n post_max_size=500M"; fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/run/php/php7.1-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root/index.php; } location /index.php { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/run/php/php7.1-fpm.sock; } }