| [ WWW ] in KIDS 글 쓴 이(By): youdj (You, D.J.) 날 짜 (Date): 1995년10월18일(수) 09시08분14초 KST 제 목(Title): cgi setting problem with Netscape server Hi.. net admins! I am from South-Korea... BTW, now We're using sgi(irix 5.3) and Netscape 1.1si. I have some problem with Netscape communication server(Ver 1.0) I wanna make a dynamic doc.. just like moving Mozilla.. But it sucks.. is there anybody who help me? My settings are like these... --- obj.conf --- # This file was automatically generated by the server. # Edit at your own risk. <Object name="default"> NameTrans fn="home-page" path="index.html" NameTrans from="/cgi-bin" fn="pfx2dir" dir="/disk1/webserver/contents/cgi-bin" name="cgi" NameTrans from="/admin/bin" fn="pfx2dir" dir="/usr/people/Creative/admin/bin" name="cgi" ... </Object> <Object name="cgi"> ObjectType fn="force-type" type="magnus-internal/cgi" Service fn="send-cgi" </Object> I wonder belows.. I dunno what I should do... <Object ppath="/disk1/webserver/contents/cgi-bin/*"> ObjectType type="multipart/x-mixed-replace" Service fn="send-cgi" type="magnus-internal/cgi" </Object> --- obj.conf --- my mime file 's like below... --- mime.types --- type=magnus-internal/imagemap exts=map type=magnus-internal/parsed-html exts=shtml <-- html is right? type=magnus-internal/cgi exts=cgi I added belows.. type=multipart/mixed type=multipart/x-mixed-replace -- mime.types --- My cgi script is like below. The cgi script works perfectly on ncsa 1.4.2 (Linux 1.2.x & sun OS..) --- diamond.cgi --- #!/bin/sh base="/disk1/webserver/contents" gif="1.gif 2.gif 3.gif 4.gif 5.gif 6.gif 7.gif 8.gif" echo "HTTP/1.0 200" echo "Content-type: multipart/x-mixed-replace;boundary=--separator" echo "" for gif in ${gif} do echo "--separator" echo "Content-type: image/gif" echo "" cat $base/$gif echo "" done echo "--separator--" --- diamond.cgi --- Any suggestion or comment will be greatly appreciated... Good luck. --- You Dong Jun Dept. of Electrical Engineering Kon Kuk Univ. e-mail:youdj@soback.kornet.nm.kr <A href="http://soback.kornet.nm.kr/~youdj/">You Dong Jun's Home Page</A> |