nginx 프로필 접근 경로

2103 단어 nginx
1. nginx wget 설치http://nginx.org/download/nginx-1.12.2.tar.gz yum - y install pcre - devel openssl openssl - devel. / configure -- prefix = / usr / loacl / nginx make make install 도 yum install nginx 를 선택 하여 설치 한 후 rpm - qa | grep nginx 보기 2. nginx 설정 http server 에서 마 운 트 해제
location /aggis {
     
			autoindex on;
			autoindex_exact_size off;
			autoindex_localtime on;
			alias   ;    #     root                            alias                
 			add_header Access-Control-Allow-Origin *;
			add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
			add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';

			if ($request_method = 'OPTIONS') {
     
				return 204;
			}
		}
    :https://www.cnblogs.com/jiongchen/p/9139156.html

좋은 웹페이지 즐겨찾기