Axil S/E kdk013
				  1997. 4. 16
				  Kim Do Kyung


SUBJECT : NCSA WEB Server Install Guide

DESCRIPTION:

★ NCSA WEB Server Install Guide

	※ Server Download 받기

hyundai2# pwd
/usr/local/etc     <= 이 곳에 받는다.

hyundai2# ftp ftp.svc.hei.co.kr
Connected to roche.svc.hei.co.kr.
220 www FTP server (Version wu-2.4(1) 1997년 2월 19일 수요일 오후 05시 15분 56초) ready.
Name (ftp.svc.hei.co.kr:root): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230-
230-
230-
230-		       	        W E L C O M E ! 
230-
230-
230-
230-	      hyundai2 에서 오신 당신의 방문을 환영합니다. 
230-	여기는 현대전자 Axil WEB Server(www)에서 제공하는 공개자료실입니다.
230-	  이 서버의 최대 사용자수는 10명이며, 현재 사용자수는 1입니다.
230-	
230-	       문의 사항이 있으시면 080-950-1472로 전화하시거나,
230-	       master@www.svc.hei.co.kr로 메일을 보내주십시요.
230-
230-
230-		      접속시간 : Tue Apr  8 13:55:53 1997
230-
230-                             현대전자 산업주식회사
230-
230-
230-
230-Please read the file README.1ST
230-  it was last modified on Thu Feb 20 09:22:18 1997 - 47 days ago
230 Guest login ok, access restrictions apply.

ftp> cd pub
250-
250-	      	     ####### I N F O R M A T I O N #######
250-
250-
250-	CDE	     : Common Desktop Environment Package 
250-	HowtoHTML    : HTML 문서 작성법
250-	MEMO	     : 기술 자료
250-	PROM	     : Ultra PROM Update Utility
250-	gnu	     : GNU Package
250-	mail	     : Sendmail,Elm,Hcode,Procmail,Qpopper,Zmail,Zpopper
250-	mpeg.solaris : Solaris용 MPEG Player
250-	netpatches   : Network Performance 관련 Patches
250-	patches      : All Public Patches
250-	realaudio    : SunOS,Solaris용 RealAudio Player
250-	upatches     : 기타 Patches
250-	utility	     : Gzip,Kermit,Zmodem,Ftptool
250-	www          : WEB 관련 Solution
250-	
250-
250-
250 CWD command successful.

ftp> cd www
250 CWD command successful.

ftp> cd server
250 CWD command successful.

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 382980
drwxr-xr-x   2 root     other       1024 Jan  4 02:24 .
drwxr-xr-x  12 root     other        512 Mar 27 05:51 ..
-rw-r--r--   1 root     other    4930408 Dec 17 08:38 calendar.solaris2.4.tar.gz
-rw-r--r--   1 root     other    4930599 Dec 17 08:38 calendar.solaris2.5.tar.gz
-rw-r--r--   1 root     other    10852121 Sep 12  1996 catalog-1.0.solaris.tar.gz
-rw-r--r--   1 root     other    10297372 Nov  4 08:03 directory-1.0.solaris.tar.gz
-rw-r--r--   1 root     other    17004814 Oct 18 07:19 enterprise-2.0.nt.exe
-rw-r--r--   1 root     other    19951265 Oct 18 07:18 enterprise-2.0.solaris.tar.gz
-rw-r--r--   1 root     other    11022848 Oct 18 03:52 fasttrack-2.0.nt.exe
-rw-r--r--   1 root     other    10297528 Sep 12  1996 fasttrack-2.0.solaris.tar.gz
-rw-r--r--   1 root     other    11117056 Oct 18 03:51 fasttrack-2.0.win95.exe
-rw-r--r--   1 root     other     430581 Jan  4 02:23 httpd_1.5.2-export_source.tar.Z
-rw-r--r--   1 root     other    18238592 Dec 17 08:38 livewirepro-101.solaris.tar.gz
-rw-r--r--   1 root     other    7432560 Sep 12  1996 mail-2.0.solaris.tar.gz
-rw-r--r--   1 root     other    7444267 Dec 17 06:50 mail-202.solaris.tar.gz
-rw-r--r--   1 root     other    20059368 Nov  1 00:06 news-2.01.solaris.tar.gz
-rw-r--r--   1 root     other    13325437 Sep 12  1996 proxy-2.0.solaris.tar.gz
-rw-r--r--   1 root     other    18786903 Dec 17 08:39 proxy-2.5.solaris.tar.gz
-rw-r--r--   1 root     other    9672050 Sep 12  1996 resource.solaris.tar.gz
226 Transfer complete.
1521 bytes received in 0.69 seconds (2.1 Kbytes/s)

ftp> bi
200 Type set to I.

ftp> ha
Hash mark printing on (8192 bytes/hash mark).

ftp> get httpd_1.5.2-export_source.tar.Z
200 PORT command successful.
150 Opening BINARY mode data connection for httpd_1.5.2-export_source.tar.Z (430581 bytes).
#####################################################
226 Transfer complete.
local: httpd_1.5.2-export_source.tar.Z remote: httpd_1.5.2-export_source.tar.Z
430581 bytes received in 0.53 seconds (8e+02 Kbytes/s)
ftp> bye
221 Goodbye.

hyundai2# uncompress httpd_1.5.2-export_source.tar.Z

hyundai2# tar xvf httpd_1.5.2-export_source.tar
x httpd_1.5.2-export, 0 bytes, 0 tape blocks
x httpd_1.5.2-export/BUGS, 2250 bytes, 5 테이프 블럭
x httpd_1.5.2-export/CHANGES, 12380 bytes, 25 테이프 블럭
x httpd_1.5.2-export/COPYRIGHT, 3251 bytes, 7 테이프 블럭
x httpd_1.5.2-export/CREDITS, 4998 bytes, 10 테이프 블럭
x httpd_1.5.2-export/Makefile, 1927 bytes, 4 테이프 블럭
x httpd_1.5.2-export/README, 3437 bytes, 7 테이프 블럭
x httpd_1.5.2-export/README.fcgi, 939 bytes, 2 테이프 블럭
x httpd_1.5.2-export/LICENSE.TERMS.fcgi, 2507 bytes, 5 테이프 블럭
x httpd_1.5.2-export/cgi-bin, 0 bytes, 0 tape blocks
x httpd_1.5.2-export/cgi-bin/archie, 379 bytes, 1 테이프 블럭
x httpd_1.5.2-export/cgi-bin/calendar, 478 bytes, 1 테이프 블럭
x httpd_1.5.2-export/cgi-bin/date, 151 bytes, 1 테이프 블럭
x httpd_1.5.2-export/cgi-bin/donothing, 45 bytes, 1 테이프 블럭
x httpd_1.5.2-export/cgi-bin/finger, 454 bytes, 1 테이프 블럭
x httpd_1.5.2-export/cgi-bin/fortune, 172 bytes, 1 테이프 블럭
x httpd_1.5.2-export/cgi-bin/mail, 13231 bytes, 26 테이프 블럭
x httpd_1.5.2-export/cgi-bin/nph-error.pl, 5157 bytes, 11 테이프 블럭
x httpd_1.5.2-export/cgi-bin/nph-test-cgi, 736 bytes, 2 테이프 블럭
x httpd_1.5.2-export/cgi-bin/redirect, 3277 bytes, 7 테이프 블럭
x httpd_1.5.2-export/cgi-bin/test-cgi, 721 bytes, 2 테이프 블럭
x httpd_1.5.2-export/cgi-bin/test-cgi.tcl, 1472 bytes, 3 테이프 블럭
x httpd_1.5.2-export/cgi-bin/test-env, 49 bytes, 1 테이프 블럭
x httpd_1.5.2-export/cgi-bin/uptime, 165 bytes, 1 테이프 블럭
x httpd_1.5.2-export/cgi-bin/wais.pl, 2682 bytes, 6 테이프 블럭
x httpd_1.5.2-export/cgi-src, 0 bytes, 0 tape blocks
x httpd_1.5.2-export/cgi-src/Makefile, 1208 bytes, 3 테이프 블럭
x httpd_1.5.2-export/cgi-src/change-passwd.c, 5253 bytes, 11 테이프 블럭
x httpd_1.5.2-export/cgi-src/imagemap.c, 11993 bytes, 24 테이프 블럭
x httpd_1.5.2-export/cgi-src/jj.c, 10053 bytes, 20 테이프 블럭
x httpd_1.5.2-export/cgi-src/phf.c, 7185 bytes, 15 테이프 블럭
x httpd_1.5.2-export/cgi-src/post-query.c, 1603 bytes, 4 테이프 블럭
x httpd_1.5.2-export/cgi-src/query.c, 1435 bytes, 3 테이프 블럭
x httpd_1.5.2-export/cgi-src/util.c, 2972 bytes, 6 테이프 블럭
x httpd_1.5.2-export/cgi-src/util.h, 374 bytes, 1 테이프 블럭
x httpd_1.5.2-export/conf, 0 bytes, 0 tape blocks
x httpd_1.5.2-export/conf/access.conf-dist, 1549 bytes, 4 테이프 블럭
x httpd_1.5.2-export/conf/httpd.conf-dist, 9825 bytes, 20 테이프 블럭
x httpd_1.5.2-export/conf/localhost_srm.conf-dist, 1497 bytes, 3 테이프 블럭
x httpd_1.5.2-export/conf/mime.types, 3319 bytes, 7 테이프 블럭
x httpd_1.5.2-export/conf/srm.conf-dist, 7175 bytes, 15 테이프 블럭
x httpd_1.5.2-export/icons, 0 bytes, 0 tape blocks
x httpd_1.5.2-export/icons/back.xbm, 506 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/ball.gif, 83 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/ball.xbm, 437 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/binary.gif, 134 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/binary.xbm, 533 bytes, 2 테이프 블럭
x httpd_1.5.2-export/icons/blank.xbm, 509 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/blue_ball.gif, 83 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/ftp.gif, 128 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/ftp.xbm, 524 bytes, 2 테이프 블럭
x httpd_1.5.2-export/icons/green_ball.gif, 83 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/image.gif, 231 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/image.xbm, 509 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/index.gif, 104 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/index.xbm, 530 bytes, 2 테이프 블럭
x httpd_1.5.2-export/icons/menu.gif, 115 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/menu.xbm, 527 bytes, 2 테이프 블럭
x httpd_1.5.2-export/icons/movie.gif, 125 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/movie.xbm, 530 bytes, 2 테이프 블럭
x httpd_1.5.2-export/icons/red_ball.gif, 83 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/sound.gif, 129 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/sound.xbm, 530 bytes, 2 테이프 블럭
x httpd_1.5.2-export/icons/telnet.gif, 127 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/telnet.xbm, 533 bytes, 2 테이프 블럭
x httpd_1.5.2-export/icons/text.gif, 130 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/text.xbm, 511 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/unknown.gif, 132 bytes, 1 테이프 블럭
x httpd_1.5.2-export/icons/unknown.xbm, 515 bytes, 2 테이프 블럭
x httpd_1.5.2-export/src, 0 bytes, 0 tape blocks
x httpd_1.5.2-export/src/CHANGES, 739 bytes, 2 테이프 블럭
x httpd_1.5.2-export/src/FEATURE_REQUESTS, 1855 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/HTTP_HEADERS, 5040 bytes, 10 테이프 블럭
x httpd_1.5.2-export/src/HTTPd_REQ_PATH, 4594 bytes, 9 테이프 블럭
x httpd_1.5.2-export/src/Makefile, 10189 bytes, 20 테이프 블럭
x httpd_1.5.2-export/src/allocate.c, 5674 bytes, 12 테이프 블럭
x httpd_1.5.2-export/src/allocate.h, 1666 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/blackout.c, 4538 bytes, 9 테이프 블럭
x httpd_1.5.2-export/src/blackout.h, 746 bytes, 2 테이프 블럭
x httpd_1.5.2-export/src/cgi.c, 20754 bytes, 41 테이프 블럭
x httpd_1.5.2-export/src/cgi.h, 1297 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/config.h, 6069 bytes, 12 테이프 블럭
x httpd_1.5.2-export/src/constants.h, 10411 bytes, 21 테이프 블럭
x httpd_1.5.2-export/src/debug.c, 1573 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/digest.c, 9001 bytes, 18 테이프 블럭
x httpd_1.5.2-export/src/digest.h, 552 bytes, 2 테이프 블럭
x httpd_1.5.2-export/src/env.c, 4952 bytes, 10 테이프 블럭
x httpd_1.5.2-export/src/env.h, 1233 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/fcgi.c, 93553 bytes, 183 테이프 블럭
x httpd_1.5.2-export/src/fcgi.h, 906 bytes, 2 테이프 블럭
x httpd_1.5.2-export/src/fdwrap.c, 5967 bytes, 12 테이프 블럭
x httpd_1.5.2-export/src/fdwrap.h, 1610 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/global.h, 1222 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/host_config.c, 8866 bytes, 18 테이프 블럭
x httpd_1.5.2-export/src/http_auth.c, 30362 bytes, 60 테이프 블럭
x httpd_1.5.2-export/src/host_config.h, 1997 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/http_access.c, 16676 bytes, 33 테이프 블럭
x httpd_1.5.2-export/src/http_access.h, 965 bytes, 2 테이프 블럭
x httpd_1.5.2-export/src/http_alias.c, 4014 bytes, 8 테이프 블럭
x httpd_1.5.2-export/src/http_alias.h, 1605 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/http_auth.h, 2073 bytes, 5 테이프 블럭
x httpd_1.5.2-export/src/http_config.c, 46205 bytes, 91 테이프 블럭
x httpd_1.5.2-export/src/http_config.h, 1816 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/http_dir.c, 20458 bytes, 40 테이프 블럭
x httpd_1.5.2-export/src/http_dir.h, 2115 bytes, 5 테이프 블럭
x httpd_1.5.2-export/src/http_include.c, 25144 bytes, 50 테이프 블럭
x httpd_1.5.2-export/src/http_include.h, 1218 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/http_ipc.c, 7556 bytes, 15 테이프 블럭
x httpd_1.5.2-export/src/http_ipc.h, 750 bytes, 2 테이프 블럭
x httpd_1.5.2-export/src/http_log.c, 21464 bytes, 42 테이프 블럭
x httpd_1.5.2-export/src/http_log.h, 2229 bytes, 5 테이프 블럭
x httpd_1.5.2-export/src/http_mime.c, 10139 bytes, 20 테이프 블럭
x httpd_1.5.2-export/src/http_mime.h, 1619 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/http_request.c, 20258 bytes, 40 테이프 블럭
x httpd_1.5.2-export/src/http_request.h, 1488 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/http_send.c, 18113 bytes, 36 테이프 블럭
x httpd_1.5.2-export/src/http_send.h, 1291 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/httpd.c, 33571 bytes, 66 테이프 블럭
x httpd_1.5.2-export/src/httpd.h, 1810 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/httpd.man, 1710 bytes, 4 테이프 블럭
x httpd_1.5.2-export/src/httpy.h, 39724 bytes, 78 테이프 블럭
x httpd_1.5.2-export/src/imagemap.c, 11169 bytes, 22 테이프 블럭
x httpd_1.5.2-export/src/imagemap.h, 1201 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/md5.c, 4931 bytes, 10 테이프 블럭
x httpd_1.5.2-export/src/md5.h, 1414 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/md5c.c, 10375 bytes, 21 테이프 블럭
x httpd_1.5.2-export/src/open_logfile.c, 4964 bytes, 10 테이프 블럭
x httpd_1.5.2-export/src/open_logfile.h, 830 bytes, 2 테이프 블럭
x httpd_1.5.2-export/src/portability.h, 14059 bytes, 28 테이프 블럭
x httpd_1.5.2-export/src/rfc822.c, 1242 bytes, 3 테이프 블럭
x httpd_1.5.2-export/src/rfc931.c, 4957 bytes, 10 테이프 블럭
x httpd_1.5.2-export/src/util.c, 32237 bytes, 63 테이프 블럭
x httpd_1.5.2-export/src/util.h, 3271 bytes, 7 테이프 블럭
x httpd_1.5.2-export/src/patch, 210613 bytes, 412 테이프 블럭
x httpd_1.5.2-export/support, 0 bytes, 0 tape blocks
x httpd_1.5.2-export/support/Makefile, 2887 bytes, 6 테이프 블럭
x httpd_1.5.2-export/support/README, 1095 bytes, 3 테이프 블럭
x httpd_1.5.2-export/support/README.change-passwd, 2669 bytes, 6 테이프 블럭
x httpd_1.5.2-export/support/change-passwd.readme, 2990 bytes, 6 테이프 블럭
x httpd_1.5.2-export/support/dbm2std.c, 1565 bytes, 4 테이프 블럭
x httpd_1.5.2-export/support/dbmdigest.c, 4387 bytes, 9 테이프 블럭
x httpd_1.5.2-export/support/dbmgroup.c, 8494 bytes, 17 테이프 블럭
x httpd_1.5.2-export/support/dbmpasswd.c, 8058 bytes, 16 테이프 블럭
x httpd_1.5.2-export/support/htdigest.c, 594 bytes, 2 테이프 블럭
x httpd_1.5.2-export/support/htpasswd.c, 4205 bytes, 9 테이프 블럭
x httpd_1.5.2-export/support/inc2shtml.c, 2586 bytes, 6 테이프 블럭
x httpd_1.5.2-export/support/std2dbm.c, 2131 bytes, 5 테이프 블럭
x httpd_1.5.2-export/support/unescape.c, 2043 bytes, 4 테이프 블럭
x httpd_1.5.2-export/support/webgrab.c, 4572 bytes, 9 테이프 블럭
x httpd_1.5.2-export/support/auth, 0 bytes, 0 tape blocks
x httpd_1.5.2-export/support/auth/pgp-dec, 1019 bytes, 2 테이프 블럭
x httpd_1.5.2-export/support/auth/pgp-enc, 552 bytes, 2 테이프 블럭
x httpd_1.5.2-export/support/auth/ripem-dec, 956 bytes, 2 테이프 블럭
x httpd_1.5.2-export/support/auth/ripem-enc, 922 bytes, 2 테이프 블럭
x httpd_1.5.2-export/support/auth/uudecode.c, 4943 bytes, 10 테이프 블럭
x httpd_1.5.2-export/support/auth/uuencode.c, 4012 bytes, 8 테이프 블럭

hyundai2# rm httpd_1.5.2-export_source.tar

hyundai2# cd httpd_1.5.2-export

hyundai2# ls
BUGS                LICENSE.TERMS.fcgi  cgi-bin             src
CHANGES             Makefile            cgi-src             support
COPYRIGHT           README              conf
CREDITS             README.fcgi         icons

	※ 컴파일 하기	

hyundai2# which gcc  <= gcc를 이용해 컴파일 한다.
/opt/gnu/bin/gcc

hyundai2# make solaris
cd src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/;  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/;'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/;" make solaris ; cd ../cgi-src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/;  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/;'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/;" make solaris ; cd ../support ; make solaris 
make tar AUX_CFLAGS=-DSOLARIS2 EXTRA_LIBS="-lsocket -lnsl" CC=gcc CFLAGS=-O
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  httpd.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_config.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_request.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  util.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_dir.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_alias.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_log.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_mime.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_access.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_auth.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_send.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  cgi.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_include.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  rfc931.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  imagemap.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  http_ipc.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  digest.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  md5.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  md5c.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  env.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  host_config.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  fdwrap.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  open_logfile.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  allocate.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  debug.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  blackout.c
gcc -c -O -DSOLARIS2 -DDIGEST_AUTH  -DDBM_SUPPORT  fcgi.c
gcc  -o ../httpd httpd.o http_config.o http_request.o util.o http_dir.o  http_alias.o http_log.o http_mime.o http_access.o http_auth.o  http_send.o cgi.o http_include.o rfc931.o imagemap.o  http_ipc.o digest.o md5.o md5c.o env.o host_config.o fdwrap.o  open_logfile.o allocate.o debug.o blackout.o fcgi.o -lsocket -lnsl   
make all CC=gcc
gcc -c -g query.c
gcc -c -g util.c
gcc query.o util.o -o ../cgi-bin/query
gcc -c -g post-query.c
gcc post-query.o util.o -o ../cgi-bin/post-query
gcc -c -g imagemap.c
gcc imagemap.o -o ../cgi-bin/imagemap
gcc -c -g jj.c
gcc jj.o util.o -o ../cgi-bin/jj
gcc -c -g phf.c
phf.c:39: warning: initialization makes integer from pointer without a cast
phf.c:39: warning: initialization makes integer from pointer without a cast
phf.c:56: warning: initialization makes integer from pointer without a cast
phf.c:56: warning: initialization makes integer from pointer without a cast
gcc phf.o util.o -o ../cgi-bin/phf
make all CC=gcc CFLAGS="-DSOLARIS2" EXTRA_LIBS="-lnsl -lsocket"
gcc -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/htpasswd.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/htpasswd.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/htpasswd.c" -o htpasswd -lnsl -lsocket
gcc -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/unescape.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/unescape.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/unescape.c" -o unescape
gcc -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/inc2shtml.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/inc2shtml.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/inc2shtml.c" -o inc2shtml
gcc -c -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/htdigest.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/htdigest.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/htdigest.c"
gcc -DSOLARIS2 -o htdigest htdigest.o ../src"javascript:if(confirm('http://item-hunter.com/md5.o  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/md5.o'" tppabs="http://item-hunter.com/md5.o" ../src/md5c.o -lnsl -lsocket
gcc -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/dbm2std.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/dbm2std.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/dbm2std.c" -o dbm2std -lnsl -lsocket
gcc -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/std2dbm.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/std2dbm.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/std2dbm.c" -o std2dbm -lnsl -lsocket
gcc -c -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/dbmdigest.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/dbmdigest.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/dbmdigest.c"
dbmdigest.c: In function `add_password':
dbmdigest.c:105: warning: assignment makes pointer from integer without a cast
gcc -DSOLARIS2 -o dbmdigest dbmdigest.o ../src"javascript:if(confirm('http://item-hunter.com/md5.o  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/md5.o'" tppabs="http://item-hunter.com/md5.o" ../src/md5c.o -lnsl -lsocket
gcc -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/dbmgroup.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/dbmgroup.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/dbmgroup.c" -o dbmgroup -lnsl -lsocket
gcc -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/dbmpasswd.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/dbmpasswd.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/dbmpasswd.c" -o dbmpasswd -lnsl -lsocket
dbmpasswd.c: In function `get_passwd':
dbmpasswd.c:134: warning: assignment makes pointer from integer without a cast
gcc -DSOLARIS2 -I../src "javascript:if(confirm('http://item-hunter.com/~chang/src/lecture/MEMO/webgrab.c  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://item-hunter.com/~chang/src/lecture/MEMO/webgrab.c'" tppabs="http://item-hunter.com/~chang/src/lecture/MEMO/webgrab.c" -o webgrab -lnsl -lsocket
webgrab.c: In function `main':
webgrab.c:168: warning: passing arg 2 of `connect' from incompatible pointer type

hyundai2# ls -F
BUGS                 Makefile             conf/
CHANGES              README               httpd*
COPYRIGHT            README.fcgi          icons/
CREDITS              cgi-bin/             src"index-1.htm" tppabs="http://item-hunter.com/"
LICENSE.TERMS.fcgi   cgi-src"index-1.htm" tppabs="http://item-hunter.com/"             support/


	※ 환경 셋팅하기

hyundai2# pwd
/usr/local/etc/httpd_1.5.2-export

hyundai2# cd ..

hyundai2# mv httpd_1.5.2-export httpd

hyundai2# cd httpd

hyundai2# cd conf      <= 모든 환경화일이 있다.

hyundai2# ls
access.conf-dist         localhost_srm.conf-dist  srm.conf-dist
httpd.conf-dist          mime.types

hyundai2# ls -l
총 52
-rw-r--r--   1 524      other       1549 1996년  6월 26일 access.conf-dist
-rw-r--r--   1 524      other       9825 1996년  6월 26일 httpd.conf-dist
-rw-r--r--   1 524      other       1497 1996년  6월 26일 localhost_srm.conf-dist
-rw-r--r--   1 524      other       3319 1996년  6월 26일 mime.types
-rw-r--r--   1 524      other       7175 1996년  6월 26일 srm.conf-dist

hyundai2# mv access.conf-dist access.conf
hyundai2# mv httpd.conf-dist httpd.conf
hyundai2# mv srm.conf-dist srm.conf

hyundai2# vi access.conf	<= Server의 보안에 관련된 정보들이 있다.

#===========================================================================
# NCSA HTTPd (comments, questions to httpd@ncsa.uiuc.edu)
#===========================================================================
# This is the gloabal access configuration file.
# Documentation for NCSA HTTPd is available from
# http://hoohoo.ncsa.uiuc.edu/
# Documentation specific to this file is at 
# http://hoohoo.ncsa.uiuc.edu/docs/setup/access/Overview.html
# http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html
#
# NCSA takes no responsibilty for any problems that result from the use
# of this server.  See the COPYRIGHT statement that came with this 
# distribution.
#===========================================================================


# /usr/local/etc/httpd/ should be changed to whatever you set ServerRoot to.

Options Indexes FollowSymLinks


############################################################################
# 디렉토리에 옵션을 지정할 수 있다.
# 
# None 		 : 어떤 옵션도 허용 안함 
# All 		 : 모든 옵션을 허용 함
# FollowSymLinks : symbolic link 허용
# SymLinksIfOwnerMatch : 사용자의 PID와 symbolic link의 owner가 일치하면 허용 
# ExecCGI        : CGI 스크립트 허용
# Include        : SSI(Server Side Include) 허용
#                  ※ SSI는 웹서버가 클라이언트들에게 각 문서에 대한 현재날짜,
#                     파일의 마지막 수정 날짜, 파일의 크기 등과 같은 추가정보를
# indexes        : URL에 디렉토리만 지정했을 때 이 디렉토리에 지정된 디폴트화일
#		   이 없을 경우 전체 화일의 목록을 보여 줄 것인가를 지정한다.
# IncludeNoExec  : Include 기능중 exec의 기능은 제공하지 않게 한다.
###############################################################################

# This should be changed to whatever you set DocumentRoot to.



# This may also be "None", "All", or any combination of "Indexes",
# "Includes", or "FollowSymLinks"

Options Indexes FollowSymLinks

# This controls which options the .htaccess files in directories can
# override. Can also be "None", or any combination of "Options", "FileInfo", 
# "AuthConfig", and "Limit"

AllowOverride All

# Controls who can get stuff from this server.


order allow,deny
allow from All	<= 모두에게 Access 허용




# You may place any other directories you wish to have access
# information for after this one.

############################################################################

hyundai2# vi httpd.conf	<= 서버의 환경 화일이다.

#===========================================================================
# NCSA HTTPd (comments, questions to httpd@ncsa.uiuc.edu)
#===========================================================================
# This is the main server configuration file. It is best to 
# leave the directives in this file in the order they are in, or
# things may not go the way you'd like. See URL http://hoohoo.ncsa.uiuc.edu/
# for instructions.
# Do NOT simply read the instructions in here without understanding
# what they do, if you are unsure consult the online docs. You have been
# warned.
# Thanks to A. P. Harris for some of the organization and explanations
# contained here-in.
#===========================================================================

#===========================================================================
# Server Operation
#---------------------------------------------------------------------------
# ServerType is either inetd, or standalone.
# Set to 'inetd' to run from inetd, or 'standalone', to run as a daemon.
# Default: standalone

ServerType standalone 	<= inetd로 하면 inet Daemon이 Request 요청에 따라서
			   새로운 프로세스를 Fork하여 처리하므로 이때마다
			   Configuration File을 읽어드리게 되므로 비효율적이다.

# If you are running from inetd, go to "ServerAdmin".

# Port: The port the standalone listens to. For ports < 1023, you will
# need HTTPd to be run as root initially.
# Default: 80 (or DEFAULT_PORT)

Port 80 	<= Default Port인 80 이외의 port를 사용하면 URL에 포트번호를
 		   지정해야 한다. ex) http://www.axil.com:88/

# StartServers: The number of servers to launch at startup.  Must be
# compiled without the NO_PASS compile option
# Default: 5 (or DEFAULT_START_DAEMON)

StartServers 1	<= 초기 startup시 구동될 서버의 수.즉, Super User에서 httpd를
 		   실행시켰다면 UID가 root인 httpd Daemon 하나와 UID가 nobody인
		   httpd가 하나씩 구동된다.

# MaxServers: The number of servers to launch until mimic'ing the 1.3
# scheme (new server for each connection).  These servers will stay around
# until the server is restarted.  They will be reused as needed, however.
# See the documentation on hoohoo.ncsa.uiuc.edu for more information.
# If compile option RESOURCE_LIMIT is used, HTTPd will not mimic the 1.3
# behavior, and MaxServers will be the maximum number of servers possible.
# Default: 10 (or DEFAULT_MAX_DAEMON)

MaxServers 3	<= 동시에 여러 Request가 올경우엔 서버(httpd Daemon)의 수가 최고
  	 	   3개까지 늘어날 수 있다는 의미.

## TimeOut 
# The number of seconds the server will wait for a client to
# send its query once connected, or the maximum amount of time the
# server will spend waiting for a client to accept information.
# Default: 1200 (or DEFAULT_TIMEOUT)

TimeOut 1200

# If you wish HTTPd to run as a different user or group, you must run
# HTTPd as root initially and it will switch.  
# User/Group: The name (or #number) of the user/group to run HTTPd as.
# Default: #-1 (or DEFAULT_USER / DEFAULT_GROUP)

User nobody	<= httpd의 owner 단, 서버타입이 standalone일 경우에만 적용됨
Group nobody   	<= httpd의 group 단, 서버타입이 standalone일 경우에만 적용됨

# IdentityCheck: Enables or disables RFC931 compliant logging of the 
# remote user name for sites which run identd or something similar. 
# This information is logged in the access_log.  Note that it 
# *will* hurt responsiveness considerably, especially for non-unix clients.
# Default: off (or DEFAULT_RFC931)

#IdentityCheck On

# AssumeDigestSupport: Whether it's safe to assume that clients support 
# md5 digesting.
# Default: off

#AssumeDigestSupport On

#===========================================================================
# Server Customization
#---------------------------------------------------------------------------
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e. use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you 
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# Valid with 
# Default: If you do not specify a ServerName, HTTPd attempts to retrieve
#	   it through system calls.

ServerName atom.svc.hei.co.kr  	<= 서버의 이름. 도메인 이름까지 준다.

# ServerAdmin: Your address, where problems with the server should be
# e-mailed.
# Valid within 
# Default:  (or DEFAULT_ADMIN)

ServerAdmin root@atom.svc.hei.co.kr	<= Admin User의 Email=WebMaster

#===========================================================================
# File Locations
#---------------------------------------------------------------------------
# ServerRoot: The directory the server's config, error, and log files
# are kept.
# Note: All other paths will use this as a prefix if they don't start with /
# Default: /usr/local/etc/httpd (or HTTPD_ROOT)

ServerRoot /usr/local/etc/httpd	<= 서버의 루트 디렉토리
				   

# ErrorLog: The location of the error log file. If this does not start
# with /, ServerRoot is prepended to it.

ErrorLog logs/error_log	

# TransferLog: The location of the transfer log file. If this does not
# start with /, ServerRoot is prepended to it.

TransferLog logs/access_log

# AgentLog: The location of the agent log file.  If this does not start
# with /, ServerRoot is prepended to it.

AgentLog logs/agent_log	<= Client software에서 받은 UserAgent header의 Log 저장

# RefererLog: The location of the referer log file.  If this does not
# start with /, ServerRoot is prepended to it.

RefererLog logs/referer_log	<= 서버의 문서를 참조하는 문서의 Log를 
				   URL -> Document 형태로 기록한다.

# PidFile: The file the server should log its pid to
PidFile logs/httpd.pid

# AccessConfig: The location of the access configuration file
# Default: conf/access.conf (or ACCESS_CONFIG_FILE)

AccessConfig conf/access.conf

# TypesConfig: The location of the typing configuration file, which
# maps filename extensions to MIME types.
# Default: conf/mime.types (or TYPES_CONFIG_FILE)

#TypesConfig /usr/local/lib/mime.types <= 서버에서 사용할 MIME을 지정

# CoreDirectory:  where to dump core.
# Default: SERVER_ROOT

#CoreDirectory /tmp


#===========================================================================
# Logging Directives
#---------------------------------------------------------------------------
# LogOptions: This determines the type of log file you are using,
# Valid options currently are:
# 	Combined for CLF with Referer and UserAgent tagged on
#	Separate for CLF in one file and Referer and UserAgent in separate files
#	Servername for CLF + ServerName 
#	Date for Referer and UserAgent logs with same date stamp as access_log

LogOptions Separate

# LogDirGroupWriteOk, LogDirOtherWriteOk: Define either of these if you 
# want the server to start even if you have write permissions on the log
# directory.  Having write permissions set is a potential security hole.
# Only makes a difference if the server process is started by root.

#LogDirGroupWriteOk
#LogDirOtherWriteOk

# RefererIgnore: If you don't want to keep track of links from certain
# servers (like your own), place it here.  If you want to log them all,
# keep this line commented.

#RefererIgnore servername

# DNSMode allows you to control the amount of DNS activity the server will
# perform.  The default is Standard, which means it does a single lookup
# on every request.  Minimum means the server will only do a lookup if 
# necessary to fulfill a domain restriction.  Maximum means the server
# will do two lookups per request.  This will be slow, and not necessarily
# that much better security.  None will keep the server from doing any
# DNS resolution.  Maximum is the same as the old MAXIMUM_DNS compile option,
# and none is the same as the old MINIMUM_DNS option.
# Default: Standard

DNSMode Standard

#===========================================================================
# KeepAlive Directives
#---------------------------------------------------------------------------
# The directives below configure keepalive, the ability of the server
# to maintain a persistent connection with a client at the client's
# request

# The following line turns keepalive on. The default is off, so
# you can omit this line, or change 'on' to 'off'

# KeepAlive on

# The following line specifies the timeout in seconds of the 
# persistent connection. If the client fails to issue another
# request on the socket within this window, the connection is closed

# KeepAliveTimeout 10

# The following line specifies the maximum number of requests
# that will be accepted on the persistent connection. If it
# is set to 0, then there will be no maximum.
# Default: 

# MaxKeepAliveRequests 0

#===========================================================================
# Misc Options
#---------------------------------------------------------------------------

#ProcessName: This is the prefix for the process name if compiled with
# SETPROCTITLE.
# Default: HTTPd

#ProcessName WebServer

#Annotation-Server: Name of our annotation server.  This will send back
# an Annotation: header with requests to denote where the annotation server
# is located.
#Default: None


#===========================================================================
# VirtualHost
#---------------------------------------------------------------------------
# VirtualHosting is the ability to respond differently to different IP
# addresses.  It can be implemented either by having a single server respond
# to all, or by having a different server respond to each (the Unix(tm) OS
# setup precludes responding to some)  Every effort has been made to allow
# a single server respond to all as effectively as possible, as this is
# more resource efficient.  There are something which still aren't possible
# in that configuration, however.

# BindAddress: A '*', IP number, or host name.  Binds the server to a 
# specific IP address.  * is all IP addresses.  Should not be used in
# conjunction with 
# Default: *

#BindAddress 127.0.0.1

# VirtualHost allows you to look differently depending on the hostname you
# are called by.  The parameter must be either an IP address or a hostname
# that maps to a single IP address.  Most of the normal httpd.conf commands
# are available, as well as the ability to denote a special ResourceConfig
# file for this host.
# You can also specify an error level with this setting, by denoting the 
# VirtualHost as Optional or Required.

#
#DocumentRoot /local
#ServerName localhost.ncsa.uiuc.edu
#ResourceConfig conf/localhost_srm.conf
#

###########################################################################

hyundai2# vi srm.conf

#===========================================================================
# NCSA HTTPd (comments, questions to httpd@ncsa.uiuc.edu)
#===========================================================================
# This is the server resource configuration file.  With this document, 
# you define the name space that users of your server see.
# See URL http://hoohoo.ncsa.uiuc.edu/ for HTTPd Documentation.
# Information specific to this file can be found at
# http://hoohoo.ncsa.uiuc.edu/docs/setup/srm/Overview.html
# Do NOT simply read the instructions in here without understanding
# what they do.  If you are unsure, consult the online docs.  You have been
# warned.
#===========================================================================


#===========================================================================
# Name Space Options
#---------------------------------------------------------------------------
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.

DocumentRoot /usr/local/etc/httpd/htdocs	<= Document의 루트

# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is recieved.

UserDir wwwhome		<= 웹서버에 등록되어 있는 일반 유저들의 홈디렉토리 아래
 			   wwwhome 디렉토리 밑으로 각 유저들의 홈페이지를 만들수
			   있다. 즉, URL이 http://hostname.domainname/~user 이면
                           Axil의 ~user/wwwhome/index.html을 액세스한다.

# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Format: Redirect fakename url

Redirect /Axil/ http://www.svc.hei.co.kr/	

# Aliases: Add here as many aliases as you need. The format is 
# Alias fakename realname

Alias /icons/ /usr/local/etc/httpd/icons/	<= 디렉토리 매핑에 사용

# ScriptAlias: This controls which directories contain server scripts.
# Format: ScriptAlias fakename realname

ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/	<= CGI 프로그램 디렉토리

#===========================================================================
# OpenMarket's FCGI Support Options (http://www.fastcgi.com/
#---------------------------------------------------------------------------
# FCGIScritpAlias: Same as ScriptAlias, except for FCGI scripts
# Format: FCGIScriptAlias fakename realname

#FCGIScriptAlias /fcgi-bin/ /usr/local/etc/httpd/fcgi-devel-kit/examples/

# Define the AppClasses. These get hit when requests come in for
# /fcgi-bin/tiny-fcgi.fcgi or /fcgi-bin/tiny-fcgi2.fcgi
#AppClass /usr/local/etc/httpd/fcgi-devel-kit/examples/tiny-fcgi.fcgi -listen-queue-depth 10 -processes 2
#AppClass /usr/local/etc/httpd/fcgi-devel-kit/examples/tiny-fcgi2.fcgi -listen-queue-depth 10 -processes 2

#===========================================================================
# Directory Indexing
#---------------------------------------------------------------------------
# If a user requests a document (URL) from your server ending in /, the
# server will attempt to "index" the directory.  It will first look for 
# a file matching the DirectoryIndex directive in order.  If no files 
# exist, and Indexing is allowed for that directory, the server will provide
# an index that it generates itself.  These options allow you to modify the
# look of that index.

# DirectoryIndex: Name of the file to use as a pre-written HTML
# directory index.  These files are used if a directory is referenced.

DirectoryIndex index.html index.shtml index.cgi	<= 디렉토리 액세스시 디폴트로 
 						   참조할 화일명

# IndexOptions

IndexOptions FancyIndexing

# AddIcon tells the server which icon to show for different files or filename
# extensions

AddIconByType (TXT,/icons/text.gif) text/*	<= 디렉토리 리스트에 보여줄 
AddIconByType (IMG,/icons/image.gif) image/*	   아이콘 설정
AddIconByType (SND,/icons/sound.gif) audio/*
AddIcon /icons/movie.gif .mpg .qt
AddIcon /icons/binary.gif .bin

AddIcon /icons/back.xbm ..
AddIcon /icons/menu.gif ^^DIRECTORY^^
AddIcon /icons/blank.xbm ^^BLANKICON^^

# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.

DefaultIcon /icons/unknown.xbm	<= 위에서 해당이 안된 화일에 적용

# AddDescription allows you to place a short description after a file in
# server-generated indexes.
# Format: AddDescription "description" filename

# ReadmeName is the name of the README file the server will look for by
# default. Format: ReadmeName name
#
# The server will first look for name.html, include it if found, and it will
# then look for name and include it as plaintext if found.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 

ReadmeName README	<= 디렉토리 인덱스시 리스트의 마지막에 출력된다.
HeaderName HEADER	<= 디렉토리 인덱스시 리스트의 맨처음에 출력된다.
			   ※  HTML 문법 수용됨

# IndexIgnore is a set of filenames which directory indexing should ignore
# This doesn't use full regexp syntax, perhaps it should . . .
# Format: IndexIgnore name1 name2...

IndexIgnore */.??* *~ *# */HEADER* */README*	<= 디렉토리 인덱스시 무시함

#===========================================================================
# Content Type and Mime Configuration
#---------------------------------------------------------------------------
# Although NCSA HTTPd doesn't fully support the content-negotiation that
# exists in HTTP/1.1, it does attempt to correctly identify different 
# encodings and types of files it serves.  The following options specify
# how it does this

# DefaultType is the default MIME type for documents which the server
# cannot find the type of from filename extensions.

DefaultType text/plain

# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
# Format: AddType type/subtype ext1

# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.

#AddEncoding compress Z
#AddEncoding gzip gz

# The following are known to the server as "Magic Mime Types"  They allow
# you to change how the server perceives a document by the extension
# The server currently recognizes the following mime types for server side
# includes, internal imagemap, and CGI anywhere.  Uncomment them to use them.
# Note: If you disallow (in access.conf) Options Includes ExecCGI, and you
# uncomment the following, the files will be passed with the magic mime type
# as the content type, which causes most browsers to attempt to save the 
# file to disk.

AddType text/x-server-parsed-html .shtml
AddType text/x-imagemap .map
AddType application/x-httpd-cgi .cgi	<= ".cgi"로 끝나는 화일은 CGI이므로 어느
#AddType application/x-httpd-fcgi .fcgi     디렉토리에 있든지 READ하지말고 실행
					    할것을 지정해 준다.
#===========================================================================
# Misc Server Resources
#---------------------------------------------------------------------------
# AccessFileName: The name of the file to look for in each directory
# for access control information and directory specific configuration

AccessFileName .htaccess	<= 디렉토리의 접근제어시 참조하는 화일

# If you want to have files/scripts sent instead of the built-in version
# in case of errors, uncomment the following lines and set them as you
# will.  Note: scripts must be able to be run as if the were called 
# directly (in ScriptAlias directory, for instance)

# 302 - REDIRECT 
# 400 - BAD_REQUEST 
# 401 - AUTH_REQUIRED 
# 403 - FORBIDDEN 
# 404 - NOT_FOUND 
# 500 - SERVER_ERROR 
# 501 - NOT_IMPLEMENTED 

#ErrorDocument 302 /cgi-bin/redirect.cgi	각각의 에러에 대해 서버에서
#ErrorDocument 500 /errors/server.html		제공하는 기본 메세지가 아닌   
#ErrorDocument 403 /errors/forbidden.html	임의의 메세지를 출력할때 사용

#########################################################################

hyundai2# ls -l
총 52
-rw-r--r--   1 524      other       1549 1996년  6월 26일 access.conf
-rw-r--r--   1 524      other       9825 1996년  6월 26일 httpd.conf
-rw-r--r--   1 524      other       1497 1996년  6월 26일 localhost_srm.conf-dist
-rw-r--r--   1 524      other       3319 1996년  6월 26일 mime.types
-rw-r--r--   1 524      other       7175 1996년  6월 26일 srm.conf

hyundai2# cd ..
hyundai2# pwd
/usr/local/etc/httpd

hyundai2# mkdir htdocs
hyundai2# mkdir logs

hyundai2# cd logs
hyundai2# pwd
/usr/local/etc/httpd/logs

hyundai2# touch error_log access_log agent_log referer_log
hyundai2# ls -l
총 0
-rw-r--r--   1 root     other          0  4월  8일  17:41 access_log
-rw-r--r--   1 root     other          0  4월  8일  17:41 agent_log
-rw-r--r--   1 root     other          0  4월  8일  17:41 error_log
-rw-r--r--   1 root     other          0  4월  8일  17:41 referer_log
hyundai2#
hyundai2# chmod 666 *

hyundai2# cd ..
hyundai2# httpd
NCSA HTTPd NCSA/1.5.2
Licensed material.  Portions of this work are
Copyright (C) 1995-1996 Board of Trustees of the University of Illinois
Copyright (C) 1995-1996 The Apache Group
Copyright (C) 1989-1993 RSA Data Security, Inc.
Copyright (C) 1993-1994 Carnegie Mellon University
Copyright (C) 1991      Bell Communications Research, Inc. (Bellcore)
Copyright (C) 1994      Spyglass, Inc.
hyundai2#
hyundai2#
hyundai2#
hyundai2# ps -ef|grep httpd
    root  5089  5087  0 17:48:02 ?        0:00 httpd
    root  5094  5027  0 17:48:10 pts/1    0:00 grep httpd
  nobody  5090  5087  0 17:48:02 ?        0:00 httpd
hyundai2#

  ※ 이상으로 WEB Server는 구동된 것이다.