windows服务器或linux下nginx配置https小白教程

https://www.cnblogs.com/luxiaoyao/p/10034009.html windows系统
https://www.cnblogs.com/scale/p/11423374.html linux系统

附上一个自己的http的nginx.conf服务代码

  server {
        listen       ****;
        server_name  localhost;

        charset utf-8;
	
    		location /aaaa {
    			root   /usr/local/bbb;
    			index  index.html index.htm;
    			try_files $uri $uri/ /aaaa/index.html;
    		}
    		
    		location /aaaa {
    			root   /usr/local/bbb;
    			index  index.html index.htm;
    			try_files $uri $uri/ /aaaa/index.html;
    		}
    }
    server {
        listen       ****;
        server_name  localhost;

        charset utf-8;
       
        location /aaaa {
    			root   /usr/local/bbbb;
    			index  index.html index.htm;
    			try_files $uri $uri/ /aaaa/index.html;
    		}
    }
发布了53 篇原创文章 · 获赞 59 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_42268364/article/details/102779961