>> Edit article
이름
제목
패스워드
: 안녕하세요..? : : 제가 잘 모르면서 알라고하는 욕심이 많아서.. : 함 테스트할라고 하는데..무지 어렵네요.. : 제가 설정했던 것을 아래에 적었습니다. : 간단하다고 하던뎅...몰라서 그런지 마냥 어렵네요 : 자료야 이것저것 잡다하게 보았지만..--; : : 어디가 잘못되고..어떤방법으로 하는것이 더 좋고.. : 제가 설정한 부분중에 불필요한 부분이나 추가해야 할 부분과 : 보안상 어떻게 해라..이렇게좀 구체적으로 설명해주시면.. : 너무 고맙겠습니다. *^^; : : : --- 사용자 인증 서비스 -- : : DocumentRoot? : --> /www/htdocs : : 인증을 하기위한 디렉토리는 ? : --> /www/htdocs/cgi-bin : : 인증에 사용될 사람은? : --> vitamin7 : : 아래와 같은 방법으로 설정을 해보았습니다. : [root@www /www]# vi conf/httpd.conf : # And for PHP 4.x, use: : # : AddType application/x-httpd-php .php .php3 .phtml .html .htm .ph : AddType application/x-httpd-php-source .phps : : # To use CGI scripts: : # : AddHandler cgi-script .cgi : : # To use server-parsed HTML files : # : AddType text/html .shtml : AddHandler server-parsed .shtml : : ScriptAlias /cgi-bin/ "/www/htdosc/cgi-bin/" : : <Directory "/www/htdocs/cgi-bin"> : AllowOverride None : Options None : Order allow,deny : Allow from all : </Directory> : : AccessFileName .htaccess : : <Directory /www/cgi-bin> : AllowOverride AuthConfig : </Directory> : : [root@www /www]# /www/bin/apachectl restart : /www/bin/apachectl restart: httpd restarted : : [root@www bin]# vi .htaccess : Auth Type Basic : AuthName vitamin7 : AuthUserFile /www/htdocs/cgi-bin/.htaccess <<<<<<<<<<<<이부분이엽 .htpasswd 인데엽... : AuthGroupFile /dev/null : : : require user vitamin7 : : #require valid-user /*파일 안에있는 모든 유저 허용*/ : : [root@www bin]# ls -la .htaccess : -rw-r--r-- 1 root root 117 Aug 23 19:42 .htaccess : : [root@www bin]# cp .htaccess /www/htdocs/cgi-bin/ : : [root@www bin]# pwd : /www/bin : : [root@www bin]# cp .htpaccess ../htdocs/cgi-bin/ : [root@www bin]# ./htpasswd -c .htaccess vitamin7 : New password: : Re-type new password: : Adding password for user vitamin7 : : [root@www bin]# vi .htpaccess : vitamin7:bN/UvfbRUAWSQ : : [root@www bin]# /www/bin/apachectl configtest : Syntax OK : [root@www bin]# /www/bin/apachectl restart : /www/bin/apachectl restart: httpd restarted : [root@www bin]# ps -ax | grep httpd : 451 ? S 0:00 /www/bin/httpd : 984 ? S 0:00 /www/bin/httpd : 985 ? S 0:00 /www/bin/httpd : 986 ? S 0:00 /www/bin/httpd : 987 ? S 0:00 /www/bin/httpd : 988 ? S 0:00 /www/bin/httpd : 990 pts/1 S 0:00 grep httpd : : : : http://prang86.school.sarang.net/cgi-bin/ : 근데..인증창이 안뜨네요..당연하다구요..히히&^^; : 그럼 뭐가 잘못됐는지 좀 구체적으로 설명좀.. : 부탁드립니다요. : : : -- 즐거운 추석을 맞이들 하시길...&^^; --
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved