user nobody ;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" ';
access_log /www/q88888888/log/access.log main;
sendfile on;
keepalive_timeout 65;
gzip on;
client_max_body_size 20m;
client_body_buffer_size 128k;
server {
listen 80;
server_name ******************.com;
location / {
root '/www/******************.com/www';
index index.html index.php;
try_files $uri $uri/ /index.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/******************.com/www$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
listen 443;
server_name www.******************.com;
ssl on;
ssl_certificate /www/******************.com/ssl/******************.com-ca-bundle.crt;
ssl_certificate_key /www/******************.com/ssl/******************.com.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
ssl_prefer_server_ciphers on;
location / {
root '/www/******************.com/www';
index index.html index.php;
try_files $uri $uri/ /index.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/******************.com/www$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
listen 443;
server_name ask.******************.com;
ssl on;
ssl_certificate /www/ask.******************.com/ssl/ask.******************.com-ca-bundle.crt;
ssl_certificate_key /www/ask.******************.com/ssl/ask.******************.com.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
ssl_prefer_server_ciphers on;
location / {
root '/www/ask.******************.com/www';
index index.html index.php;
try_files $uri $uri/ /index.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/ask.******************.com/www$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name www.+++++.com +++++.com;
location / {
root '/www/+++++.com';
index index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/+++++.com$fastcgi_script_name;
include fastcgi_params;
}
}
}
nginx + ssl
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
相關(guān)閱讀更多精彩內(nèi)容
- 首先在阿里云或騰訊云申請免費的證書,選擇文件驗證方式生成證書。然后就是nginx虛擬主機(jī)配置文件的修改。以下是我的...
- 目錄:1、憑證申請 Let’s Encrypt2、Nginx支持多域名ssl證書3、Nginx強(qiáng)制使用https訪...
- 標(biāo)題 #空格標(biāo)題 # 一級標(biāo)題 ## 二級標(biāo)題 ###### 六級標(biāo)題 無序列表 -空格文本 - 文本1...