text 服务器块con subdominios y php,con SSL。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 服务器块con subdominios y php,con SSL。相关的知识,希望对你有一定的参考价值。
upstream php {
server unix:/tmp/php-cgi.socket;
server 127.0.0.1:9000;
}
server {
#if ($host ~ ^[^.]+\.bikelife\.cl$) {
#return 301 https://$host$request_uri;
#} # managed by Certbot
listen 80;
listen [::]:80;
server_name *.bikelife.cl;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
root /var/www/html;
index index.php index.html index.nginx-debian.html;
server_name bikelife.cl www.bikelife.cl;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
#NOTE: You should have “cgi.fix_pathinfo = 0;” in php.ini
include fastcgi.conf;
include fastcgi_params;
fastcgi_pass php;
include snippets/fastcgi-php.conf;
}
location ~ /\.ht {
deny all;
}
ssl_certificate /etc/letsencrypt/live/www.bikelife.cl/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.bikelife.cl/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
server {
listen 443 ssl;
root /var/www/dev-html;
index index.php index.html index.nginx-debian.html;
server_name dev.bikelife.cl;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
#NOTE: You should have “cgi.fix_pathinfo = 0;” in php.ini
include fastcgi.conf;
include fastcgi_params;
fastcgi_pass php;
include snippets/fastcgi-php.conf;
}
location ~ /\.ht {
deny all;
}
ssl_certificate /etc/letsencrypt/live/www.bikelife.cl/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.bikelife.cl/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
以上是关于text 服务器块con subdominios y php,con SSL。的主要内容,如果未能解决你的问题,请参考以下文章
text 服务器阻塞puerto 80 con subdominios con PHP
varletconst的区别
text 发布文本,icono con帮助描述
text TABELLE CON TESTI SE63
text 按钮和标签con stylo naranja
text Creazione OOALV树完成con eventi