WEB 관리

2019. 9. 24. 22:23정보보안과정/리눅스 네트워크 관리자

190924
[실습] 웹 클라이언트 툴사용법
* firefox
* curl/lynx CMD
* telnet/nc CMD
[실습] 개별 사용자 웹서버 구성
# vi /etc/httpd/conf/httpd.conf
UserDir public_html
# su - user01
$ chmod 755 .
$ mkdir -p public_html
$ echo hello world > public_html
[실습] 개별 사용자 웹서버 구성2(httpd.conf(Alias))
# vi /etc/httpd/conf/httpd.conf
Alias /user01/ /home/user01/public_html/
# vi public_html/index.html 

ServerRoot "/etc/httpd"
Listen 80
include conf.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
DocumnentRoot "/var/www/html" <- 소스코드쪽
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Allow from all

362     UserDir public_html

http://www.example.com/index.html -> /var/www/html.html

Directoryindex index.html index.htm default.html  default.htm index.php
/var/www/html 디렉토리 안에
(예) index.html
(예) index.jsp -> 다 봐서 없으면 파일과 디렉토리 목록을 보여준다.

(요청) http://www.linux2XX.example.com

[실습] index 파일 설정(httpd.conf(DirectoryIndex))
# vi /etc/httpd/conf/httpd.conf
DirectoryIndex default.html index.html index.html.var
# vi /var/www/html/default.html
[실습] ServerAdmin, ServerName 지시자 실습

'정보보안과정 > 리눅스 네트워크 관리자' 카테고리의 다른 글

WEB / FTP 서버 관리  (0) 2019.09.25
DNS 서버관리 / WEB 관리  (0) 2019.09.24
DNS 서버 관리  (0) 2019.09.20
네트워크 설정 관리  (0) 2019.09.19
서비스 관리  (0) 2019.09.18