Skip to content

Commit 5963351

Browse files
committed
* 일부 기능 추가 및 수정
*) 추가 : 데비안 패키지 libssl-dev 추가 (nginx 내에서 SSL을 지원하기 위함) *) 추가 : OpenSSL 모듈 다운로드 (Alpha 3.x는 작동하지 않으므로 1.x의 마지막 대역) *) 추가 : headers_more_nginx 모듈 다운로드 (헤더를 숨기기에 용이함) *) 수정 : 헤더명에 버전이 노출되는 문제를 방지하고자, 서버 헤더를 HostLSH Blank로 변경.
1 parent 4b5f664 commit 5963351

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

conf/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ http {
4646
}
4747

4848
#error_page 404 /404.html;
49+
more_set_headers "Server: HostLSH Blank";
4950

5051
# redirect server error pages to the static page /50x.html
5152
#

install.sh

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,36 @@ apt-get -y update
44
apt-get -y upgrade
55
apt -y update
66
apt -y upgrade
7-
apt-get -y install unzip gcc g++ openssl zlib1g-dev libpcre3 libpcre3-dev make git
7+
apt-get -y install unzip gcc g++ openssl zlib1g-dev libpcre3 libpcre3-dev make git libssl-dev
88

99
mkdir /opt/
1010
git clone https://github.com/HanbitGaram/LSH_Nginx.git /opt/LSH_nginx
11+
cd /opt/LSH_nginx
1112
git pull
1213

13-
cd /opt/LSH_nginx
14+
rm -rf /opt/LSH_nginx/openssl_111g
15+
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz -O ./openssl_111g.tar.gz
16+
tar -xvzpf openssl_111g.tar.gz
17+
mv openssl-1.1.1g openssl_111g
18+
19+
git clone https://github.com/openresty/headers-more-nginx-module.git
20+
cd headers-more-nginx-module
21+
git pull
22+
23+
cd ..
1424

1525
./configure \
1626
--prefix=/usr/local/nginx \
1727
--user=www-data \
1828
--group=www-data \
19-
--with-openssl=/usr/bin
29+
--with-openssl=/opt/LSH_nginx/openssl_111g \
30+
--with-http_ssl_module \
31+
--with-http_realip_module \
32+
--with-http_stub_status_module \
33+
--with-http_realip_module \
34+
--with-ipv6 \
35+
--add-module=/opt/LSH_nginx/headers-more-nginx-module
36+
2037

2138
make -j 4
2239
make install -j 4

0 commit comments

Comments
 (0)