>> Read No. 35485 article  
cgi설정문제~~

등록 2001-11-21 06:15:00     조회 2
이름 박현진    

		httpd.conf
 ServerType standalone
ServerRoot "/usr/local"
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 7
MaxSpareServers 11
StartServers 7
MaxClients 150
MaxRequestsPerChild 30
Port 80
User nobody
Group nobody
DocumentRoot "/usr/local/www/data"
<Directory />
    Options FollowSymLinks Includes ExecCGI
    AllowOverride All
</Directory>
<Directory "/usr/local/www/data">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
<IfModule mod_userdir.c>
    UserDir www
</IfModule>
<Directory /*/www>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
</Directory>
<IfModule mod_dir.c>
    <IfModule mod_php3.c>
        <IfModule mod_php4.c>
            DirectoryIndex index.php index.php3 index.html index.cgi
        </IfModule>
        <IfModule !mod_php4.c>
            DirectoryIndex index.php3 index.html
        </IfModule>
    </IfModule>
    <IfModule !mod_php3.c>
        <IfModule mod_php4.c>
            DirectoryIndex index.html index.php
        </IfModule>
        <IfModule !mod_php4.c>
            DirectoryIndex index.html
        </IfModule>
    </IfModule>
</IfModule>
AccessFileName .htaccess
<Files ~ "^.ht">
    Order allow,deny
    Deny from all
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
    TypesConfig /usr/local/etc/apache/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile /usr/local/etc/apache/magic
</IfModule>
HostnameLookups On
CustomLog /var/log/httpd-access.log combined
ServerSignature On
<IfModule mod_alias.c>
    Alias /icons/ "/usr/local/www/icons/"
    <Directory "/usr/local/www/icons">
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
    <Directory "/usr/local/www/cgi-bin">
        AllowOverride All
        Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
 </IfModule>
     DefaultIcon /icons/unknown.gif
     <IfModule mod_php3.c>
        AddType application/x-httpd-php3 .php3
        AddType application/x-httpd-php3-source .php3s
    </IfModule>
    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php .html .htm .php3
        AddType application/x-httpd-php-source .phps
    </IfModule>
     AddType application/x-tar .tgz
     AddHandler cgi-script .cgi
    AddType text/html .shtml
    AddHandler server-parsed .shtml
</IfModule>
<IfModule mod_setenvif.c>
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4.0" force-response-1.0
    BrowserMatch "Java/1.0" force-response-1.0
    BrowserMatch "JDK/1.0" force-response-1.0
 </IfModule>
 아파치 서버를 실행하고 나서
http://ip/cgi-bin/test.cgi
잘됩니다...
 그런데
http://ip/~demold/cgi-bin/test.cgi
하면 에러가 뜹니다..
Forbidden
You don't have permission to access /~demold/test.cgi on this server.
어케 된 일이지요 ...
 설정파일도 올립니다..
이름
암호


>> 관련글
35485 cgi설정문제~~  박현진  2001.11.21  ....
  답장 RE: cgi설정문제~~  하늘  2001.11.21  ....
Register [ localhost 목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 1.24 초 ] 작업시간: [ 0.26 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1789501452
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.