nginx/jetty在Lift-web上的简单应用配置

 server {
        listen       80;
        server_name  www.myapp.com myapp.com;

        access_log  logs/myapp.access.log main;


        location / {
            proxy_pass http://127.0.0.1:8080;
         proxy_set_header  X-Real-IP  $remote_addr;
         proxy_read_timeout 700;
         proxy_set_header Host $http_host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }

    server {
        listen       80;
        server_name preview.myapp.com;

        access_log  logs/preview_myapp.access.log main;


        location / {
            proxy_pass http://127.0.0.1:9921;
         proxy_set_header  X-Real-IP  $remote_addr;
         proxy_read_timeout 700;
         proxy_set_header Host $http_host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }

    server {
        listen       80;
        server_name dev.myapp.com;

        access_log  logs/dev_myapp.access.log main;


        location / {
            proxy_pass http://127.0.0.1:9922;
         proxy_set_header  X-Real-IP  $remote_addr;
         proxy_read_timeout 700;
         proxy_set_header Host $http_host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }

你可能感兴趣的:(server,header,Access)