zoukankan      html  css  js  c++  java
  • openresty lua

    #user  nobody;
    
    worker_processes  10;
    
    #error_log  logs/error.log;
    #error_log  logs/error.log  notice;
    #error_log  logs/error.log  info;
    
    events {
        worker_connections  1024;
    }
    
    # http conf
    http {
        #include     http/common.conf;
        #include     http/cache.conf;
        #include     http/resty.conf;
        #include     http/mime.types;
    
        include     http/*.conf;
    
        include     http/servers/*.conf;
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                          '$status $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for" "$request_filename"';
      
        access_log  logs/access.log  main;  
    
    
            #charset koi8-r;
    
            #access_log  logs/host.access.log  main;
    server{
            listen       8090;
            server_name  192.168.137.2;
            ssl on;
            #从腾讯云获取到的第一个文件的全路径
            ssl_certificate /etc/ssl/server.pem;
            ssl_certificate_key /etc/ssl/server.key;
           location /  {
                #gzip on;
                alias /var/www/html/;
                index  index.html index.htm;
            }
    
           location /lua {
              default_type text/html;
              content_by_lua '
              ngx.say("User-Agent:",ngx.req.get_headers()["User-Agent"])
               ';
           }
    
    }
    
    }
  • 相关阅读:
    ACM 一种排序
    ACM Binary String Matching
    ACM 括号配对问题
    ACM BUYING FEED
    ACM 喷水装置(二)
    ACM 会场安排问题
    ACM 推桌子
    ACM 心急的C小加
    ACM 田忌赛马
    ACM 疯牛
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348310.html
Copyright © 2011-2022 走看看