---
title: "nginx白名单"
author: "roc08"
date: "2014-07-05T09:42:57Z"
tags: []
categories: ["编程语言"]
slug: "nginx"
draft: false
lastmod: "2014-07-05T09:42:57Z"
id: 2088507
url: "https://roc08.iteye.com/blog/2088507"
---

location ^~ /login/Jeecms.do {
			root   html;
            index  index.html index.htm;
            proxy_set_header  X-Real-IP  $remote_addr;
            proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_redirect off;

            proxy_connect_timeout      60;
            proxy_send_timeout         60;
            proxy_read_timeout         60;

            proxy_pass http://jboss;
			
			allow 127.0.0.1;
			allow 192.168.69.0/255;
			allow 182.48.117.2;  
			deny all;
        }