본문 바로가기
조회 수 9737 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
1. create private key and cert

# openssl req -newkey rsa:1024 -keyout /etc/pki/tls/private/bigip.key -nodes -sha1 -x509 -days 3650 -out /etc/pki/tls/certs/bigip.crt

2. install mod_ssl

# yum install mod_ssl
: this will install /usr/lib/httpd/modules/mod_ssl.so

3. edit httpd.conf

# vi /etc/httpd/conf/httpd.conf
--------------------------------------------------------
NameVirtualHost *:443
<VirtualHost *:443>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /home/user/www.bigip.co.kr
    ServerName www.bigip.co.kr
    ErrorLog logs/www.bigip.co.kr-error_log
    CustomLog logs/www.bigip.co.kr-access_log common

    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/bigip.crt
    SSLCertificateKeyFile /etc/pki/tls/private/bigip.key
</VirtualHost>
--------------------------------------------------------

4. restart httpd

# apachectl configtest
Syntax OK
# service httpd restart


Note. If mod_ssl is not installed, then you will get an error as below.
# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Syntax error on line 1042 of /etc/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration


Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
448 /boot 파티션 손상시 복구 방법 Hojung 2011.01.07 27908
447 /proc/meminfo 내용 설명 Hojung 2011.01.07 21979
446 1.txt ~ 999.txt 파일명을 001.txt ~ 999.txt 로 변경하기 Hojung 2010.12.31 17294
445 10 Ways to Generate a Random Password from the Command Line Hojung 2014.11.16 6063
444 18 commands to monitor network bandwidth on Linux server file Hojung 2014.04.13 10069
443 20 Linux System Monitoring Tools Every SysAdmin Should Know (Cool!) Hojung 2009.10.20 12423
442 59 Open Source Tools That Can Replace Popular Security Software Hojung 2011.06.16 22371
441 A simple Linux backup method Hojung 2010.11.25 21296
440 About initrd from Wikipedia Hojung 2008.01.06 17264
439 Add arguments from previous command Hojung 2011.08.22 16806
438 Advanced SSH security tips and tricks Hojung 2011.08.18 14347
437 Apaceh2 + SSL on Fedora Core Hojung 2007.12.14 46670
» Apache 2 with SSL/TLS (https) Hojung 2012.07.20 9737
435 Apache 2 with SSL/TLS: Step-by-Step, Part 1 Hojung 2007.12.14 16849
434 Apache2 + MongoDB + ElasticSearch + Kibana file Hojung 2014.03.16 13303
433 APM (Apache + PHP + MySQL) with phpmyadmin in CentOS VM Hojung 2014.11.16 7040
432 ARP Spoofing 감지하기 (arpwatch) Hojung 2011.01.14 25853
431 arping Hojung 2007.11.18 25784
430 ATI x1300 on Fedora Core 10 Hojung 2009.04.20 22297
429 awk 명령어 간단 사용법 Hojung 2009.03.11 17798
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 ... 23 Next ›
/ 23

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5