求助-LNMP

指南Nan 2022-3-7 1382

如何配置反向代理

最新回复 (5)
  • wxjv99 2022-3-7
    2

    你是指nginx?还是内网穿透?

    这家伙太懒了,什么也没留下。
  • 指南Nan 2022-3-7
    3
    wxjv99 你是指nginx?还是内网穿透?

    nginx

  • C 2022-3-7
    4
    Bug2021 nginx

    看看fastgit他们的

    https://hub.fastgit.xyz/FastGitORG/nginx-conf/blob/master/hub.fastgit.org.conf

  • wxjv99 2022-3-7
    5
    Bug2021 nginx
    server {
        listen 80;
        listen[::]: 80;
        server_name www. < 域名 > < 域名 > ;
        return 301 https: //$server_name$request_uri;
    }

    server {
        listen 443 ssl;
        listen [::]:443 ssl;
        server_name <域名>;
        ssl_certificate <证书.pem>;
        ssl_certificate_key <证书.key>;
        return 301 https://www.$server_name$request_uri;
    }

    server {
        listen 443 ssl;
        listen [::]:443 ssl;
        server_name www.<域名>;
        ssl_certificate <证书.pem>;
        ssl_certificate_key <证书.key>;
        root <站点目录>;
        index index.php;
        location / {
            index index.php;
            autoindex on;
        }
           
        location ~ \.php$ {
            include /usr/local/etc/nginx/fastcgi.conf;
            fastcgi_intercept_errors on;
            fastcgi_pass 127.0.0.1:9000;
        }
    }
    这家伙太懒了,什么也没留下。
  • wxjv99 2022-3-7
    6

    php-fpm和fastcgi那一块要看你自己用的什么php框架来配置

    这家伙太懒了,什么也没留下。
返回
发新帖