server {
listen 80;
listen 443 ssl;
server_name _ localhost;
ssl_certificate /etc/nginx/ssl/www.wobushidalao.top.pem ;
ssl_certificate_key /etc/nginx/ssl/www.wobushidalao.top.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
root /var/www/html/WechatAppService;
location /static{
alias /var/www/html/WechatAppService/static;
}
location / {
include /etc/nginx/uwsgi_params;
uwsgi_pass localhost:9002;
}
}
server {
listen 80;
server_name ustb.campus.wobushidalao.top;
location / {
proxy_pass http://43.138.46.106;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
server {
listen 80;
server_name blog.wobushidalao.top;
root /var/www/html/Podcaster;
location /static{
alias /var/www/html/Podcaster/static;
}
location / {
include /etc/nginx/uwsgi_params;
uwsgi_pass localhost:9001;
}
}
server {
listen 80;
server_name jwglq.wobushidalao.top;
root /var/www/html/jwglq;
location /static{
alias /var/www/html/jwglq/static;
}
location / {
include /etc/nginx/uwsgi_params;
uwsgi_pass localhost:9003;
}
}
nginx配置(笔记)
最新推荐文章于 2024-05-08 22:36:20 发布