Advertisement

nginx 笔记

阅读量:

未启用gzip压缩功能的nginx环境下,访问http://192.168.2.40/将映射至路径/home/stm/html/zhgl

当访问http://192.168.2.40/pad时,其对应的存储位置为/home/stm/html/pad

复制代码
      location / {

    
             root   /home/stm/html/zhgl;
    
             index  index.html index.htm;
    
         }
    
  
    
  
    
         location /pad{
    
                 root  /home/stm/html;
    
             index  index.html index.htm;
    
             autoindex off;
    
         }
    
    
    
    

1、建立持久化连接

可将参数直接设

全部评论 (0)

还没有任何评论哟~