| [ internet ] in KIDS 글 쓴 이(By): Gizmos (그림이) 날 짜 (Date): 1995년09월15일(금) 21시35분00초 KDT 제 목(Title): [AA]홈페이지 올릴때 URL.. 그럼 윗글에 이어서.. 계속.. 우선 httpd 라는 디렉토리를 찾아 보셔요. 거기에는 대충 이런 화일(NCSA 경우)이 있어요. -rw-r--r-- 1 root 1438 May 2 21:36 Makefile -rw-r--r-- 1 root 3925 May 2 21:36 README drwxr-xr-x 8 root 1024 Sep 16 10:54 cgi-bin/ drwxr-xr-x 2 root 512 Aug 19 23:41 cgi-src/ drwxr-xr-x 2 root 512 Sep 1 02:05 conf/ drwxr-xr-x 2 root 512 Jul 23 17:35 icons/ drwxr-xr-x 2 root 512 Jul 23 17:44 logs/ drwxr-xr-x 2 root 1024 Aug 19 15:38 src/ drwxr-xr-x 3 root 512 Jul 23 17:35 support/ 여기서 conf에 들어가 보면 또 다음과 같은 것이 또있구요. -rw-r--r-- 1 root 974 Aug 22 03:30 access.conf -rw-r--r-- 1 root 3289 Sep 6 17:18 httpd.conf -rw-r--r-- 1 root 24 Sep 1 02:16 imagemap.conf -rw-r--r-- 1 root 3263 May 2 21:36 mime.types -rw-r--r-- 1 root 3903 Aug 19 15:05 srm.conf 또 srm.conf의 내용을 보면 # 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/WWW/WWW-Home # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is recieved. UserDir Web-home # DirectoryIndex: Name of the file to use as a pre-written HTML # directory index DirectoryIndex INDEX.html 이게 뜻하는게 뭐냐면 .. http://lca.kaist.ac.kr/ 하고 들어 오면 바로 여기(/usr/local/WWW/WWW-Home/INDEX. html)가 되죠. 그리고 http://lca.kaist.ac.kr/~arnold/ 하고 들어 오면 /users/arnold/WWW-Home/INDEX.html을 보여주게 되죠. 그데 이 화일(srm.conf)는 write permission이 아마도 root로 제한 했을 꺼구요. 그러니까 UserDir 부분을 찾아 서 또는 물어 봐도 되고 다음에 나오는 이름을 알아 내면 ( 제경우는 Web-home) 그 이름을 가지고 mkdir ~/Web-home하면 되거 거죠.. 또 DirectoryIndex 부분을 찾아서.. 다음에 오는 이름이 아마도 고치지 않았으면 index.html 일테니까 ~/Web-home 밑에다 이 이름(index.html)으로 화일을 만들어 두면 ~/Web-home 밑에다 이 이름(index.html)으로 화일을 만들어 두면 오부에서 http://lca.kaist.ac.kr/~arnold/ 하게 되면 /users/arnold/WWW-Home/index.html을 http 데몬이 알아서 보여 주게 (보내주게)되어 있죠.. 그래도 잘 모르시면 제 e-mail로 보내 주세요.. from gossamor@supercom.korea.ac.kr 그럼 이만 .... O0o.................. o........ ... . 그림이가 |