美文网首页
重定向全部内容

重定向全部内容

作者: 蛐蛐儿阳 | 来源:发表于2022-02-08 14:57 被阅读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;
    # }
}

相关文章

  • 重定向全部内容

  • 第07章重定向管道

    输出重定向案例 > < 脚本中使用重定向 2.输入重定向及结合案例 管道 | 重定向和管道的符号对比。重定向输出到...

  • shell 笔记 Day1

    重定向: (覆盖重定向), >>(追加重定向) , 2>(重定向错误信息) , &>(错误正确都重定...

  • 《Linux就该这么学 》笔记(六)| 管道符、重定向和环境变量

    1. 重定向 重定向技术的 5 种模式 标准覆盖输出重定向 标准追加输出重定向 错误覆盖输出重定向 错误追加输出重...

  • 永久性重定向和302临时性重定向

    什么是重定向? 所谓重定向就是将网页自动转向重定向,即:301永久性重定向和302临时性重定向。实施301后,新网...

  • 2019-06-13 重定向301和302

    什么是重定向? 所谓重定向就是将网页自动转向重定向,即:301永久性重定向和302临时性重定向。实施301后,新网...

  • 重定向

    输出重定向 输入重定向 错误重定向 管道 shell中特殊符号

  • Linux重定向day13

    1.重定向概述2.重定向的输出输入3.进程管道技术 一、重定向概述 什么是重定向:Linux重定向是指修改原来默认...

  • Linux高级

    一.重定向命令 学习目标 能够使用重定向命令将终端显示内容重定向到文件 1. 重定向命令的介绍 重定向也称为输出重...

  • linux 对文件内容的操作

    1 cat 查看文件的全部内容 2 more 分屏显示文件的全部内容 3 less 分屏显示文件的全部内容 同...

网友评论

      本文标题:重定向全部内容

      本文链接:https://www.haomeiwen.com/subject/exvbkrtx.html