重定向全部内容
2022-02-08 本文已影响0人
蛐蛐儿阳
server {
listen 80;
server_name bjful.com www.bjful.com;
return 301 https://$host$request_uri;
}
server {
error_log /www/wwwlogs/error_log.log;
listen 443 ssl;
server_name bjful.com www.bjful.com;
root /www/wwwroot/bjful.com;
# 命令
ssl_certificate /root/.acme.sh/bjful.com/fullchain.cer;
ssl_certificate_key /root/.acme.sh/bjful.com/bjful.com.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
# location / {
# index index.php;
# try_files $uri $uri/ /index.php$is_args$args;
# }
# include enable-php-73.conf;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
proxy_ssl_verify off;
proxy_pass https://toyarry.hawkshop.top;
proxy_http_version 1.1;
}
# location ~ [^/]\.php(/|$) {
# set $root "/home/www/wwwroot/goodluck/buyer/web";
# fastcgi_pass unix:/tmp/php-cgi-73.sock;
# fastcgi_index index.php;
# include fastcgi.conf;
# fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
# }
}