설치 yum install yum-utilsrepo 설정 /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ gpgcheck=1 enabled=0 gpgkey=https://nginx.org/keys/n..
nginx 버전 정보 감추기 http { server_tokens off; }vhost 설정 위한 디렉토리 생성 및 지정 http { include sites-enabled/*; } include /etc/nginx/conf.d/*.conf; 이 디렉토리 안에 넣는것과 차이점? 아이피 차단 server { allow 192.168.0.0/24; deny all; } 192.168.0.0/24 아이피 대역을 제외하고 차단 디렉토리 차단 location ~ /(inc|local)/.* { deny all; return 404; }설정된 도메인 이외 차단 server { listen 80 default; server_name _; location / { deny all; return 406; } }도메인 리다..
참고 사이트 https://forteleaf.tistory.com/entry/nginx-php71-phpfpm-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0 https://www.hostinger.com/tutorials/how-to-install-lemp-centos7테스트 환경 CentOS7 php 7.3.5 버전 nginx 1.12.2nginx 설치 특별한 저장소 필요 yum install epel-release yum install nginxphp-fpm 설치 yum install php-fpm 기본저장소 외에 PHP 패키지 종류 및 버전은 따로 설치가 필요하다 nginx 설정 vim /etc/nginx/conf.d/default.conf (파일생성) server { liste..
Apache가 대중적으로 많이 사용되고 있지만 요즘 가벼운 웹 서비스를 구축할려는 수요가 많이 보여진다. NGINX 를 설치해보았다. 다운로드 wget http://nginx.org/download/nginx-1.1.8.tar.gz 설치 설치전 필요패키지 yum install pcre* make tar xvfz nginx-1.1.8.tar.gz cd nginx-1.1.8./configure --prefix=/usr/local/nginx && make && make install http://wiki.nginx.org/RedHatNginxInitScript 사이트에서 스크립트 파일 내용 복사해서 vim /etc/init.d/nginx 에 붙여넣기 nginx 첨부파일 참조 chmod 700 /etc/init..
- Total
- Today
- Yesterday
- softether
- 베이어다이나믹
- cURL
- mod_security
- 리눅스
- IPSEC
- SSL
- gitlab
- pptp
- centos8
- HAProxy
- Apache
- galera
- centOS7
- OpenVPN
- virtualbox
- iptables
- ssh
- kvm
- 인증서
- yum
- glusterfs
- mariadb
- WAF
- NGINX
- ntp
- php
- GeoIP
- MySQL
- L2TP
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |