일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 | 31 |
- Python
- Javscript
- cookie
- php_extract
- Fortran 90
- overthewire
- 카이사르 암호
- JavaScript
- base16
- Pigpen Cipher
- Navajo alphabet
- sha1
- vigenere cipher
- assembly
- aslr
- reversing
- Linux
- Masonic Cipher
- 비즈네르 암호
- BASE64
- Caesar Cipher
- sql injection
- AVR
- burpsuit
- Web Hacking
- base32
- webhacking
- Qrcode
- 시저 암호
- Mail Header injection
- Today
- Total
My Drive
[CentOS] CentOS7 웹서버 (http, https) 본문
web server 설치
>> yum install httpd
>> service httpd start
>> yum install php
>> yum install php-mysql
web server http 포트변경 (80 -> 8080)
>> vi /etc/httpd/conf/httpd.conf 수정
- Listen 8080
>> vi /etc/httpd/conf/httpd.conf 마지막에 추가
------------------------------------------------------
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
------------------------------------------------------
>> mkdir /etc/httpd/conf/extra
>> vi /etc/httpd/conf/extra/httpd-vhosts.conf 생성 후 수정
------------------------------------------------------
<VirtualHost *:8080>
DocumentRoot "/var/www/html"
<Directory /var/www/html>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
require all granted
</Directory>
</VirtualHost>
------------------------------------------------------
web server https 설정 및 포트변경 (443 -> 8443)
>> yum install mod_ssl openssl
>> mkdir /etc/httpd/ssl; cd /etc/httpd/ssl
>> openssl genrsa -out server.key 2048
>> openssl req -new -key server.key -out server.csr
>> openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
>> vi /etc/httpd/conf/httpd.conf 추가
- Listen 8443
>> vi /etc/httpd/conf/extra/httpd-vhosts.conf 추가
------------------------------------------------------
<VirtualHost *:8443>
DocumentRoot "/var/www/html"
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/server.crt
SSLCertificateKeyFile /etc/httpd/ssl/server.key
<Directory /var/www/html>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
require all granted
</Directory>
</VirtualHost>
------------------------------------------------------
'linux' 카테고리의 다른 글
[CentOS] NFQUEUE 설치 및 설정 (0) | 2016.02.18 |
---|---|
[CentOS] CentOS7 MariaDB 5.5 설치 (0) | 2016.02.18 |
[CentOS] CentOS7 Minimal 기본 설정 (0) | 2016.02.18 |
시스템 문제 만들때 (0) | 2014.09.29 |
[Ubuntu] 리눅스 설치 후 (0) | 2014.09.29 |