ini nginx_laravel.conf
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini nginx_laravel.conf相关的知识,希望对你有一定的参考价值。
server {
listen 80;
server_name site.com www.site.com;
return 301 https://site.com$request_uri;
}
server {
listen 443 ssl http2;
server_name site.com;
root /var/www/site/public;
index index.html index.htm index.php;
access_log /var/log/nginx/site.com.access.log;
error_log /var/log/nginx/site.com.error.log;
error_page 401 /custom_401.html;
if ($host ~* ^www\.(.*)) {
set $host_without_www $1;
rewrite ^(.*)$ $scheme://$host_without_www$1 permanent;
break;
}
if ($request_uri ~* "^(.*/)index\.php$") {
return 301 $1;
}
location = /custom_401.html {
root /usr/share/nginx/html;
internal;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~* \.(?:ico|css|gif|jpe?g|js|png|svg|svgz|swf)(\?.+)?$ {
access_log off;
log_not_found off;
expires 7d;
}
ssl on;
ssl_certificate /usr/share/ssl-cert/digamarket_com.chained.crt;
ssl_certificate_key /usr/share/ssl-cert/digamarket_com.key;
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#ssl_prefer_server_ciphers on;
#ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:!DSS;
ssl_buffer_size 8k;
ssl_session_tickets off;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 10s;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.2-fpm-site.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE upload_max_filesize=5M;
fastcgi_param PHP_VALUE post_max_size=5M;
include /etc/nginx/fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
以上是关于ini nginx_laravel.conf的主要内容,如果未能解决你的问题,请参考以下文章
centos下php.ini配置项
在Delphi下,怎样在DLL里读取ini文件的内容
vb读写ini文件
在Delphi下,如何在DLL里攫取ini文件的内容
delphi同步读取ini文件
pycharm新建ini文件或创建ini文件失败