2014-12-15 5 views
-1

내 .htacess 파일에서 아래에 500 오류가 발생합니다. 이유를 알 수 없습니다. <?php echo $_SERVER["SCRIPT_FILENAME"]; ?>으로 경로를 확인했습니다./home/tedctcou/public_html/파일 이름입니다..htaccess 인증 500 오류

누구도 그 이유가 작동하지 않는 이유를 볼 수 있습니까? 나는 여기에서 도움이 필요하다. .. 많은 감사합니다!

AuthUserFile /home/tedctcou/public_html/.pswrd 
AuthType Basic 
AuthName "Information for committee and board members. Please enter your login details to access this information." 

<Files "staff.php"> 
    Require valid-user 
    Order deny,allow 
    Deny from all 

    Allow from 216.70.112.113 
    Satisfy Any 
</Files> 
+0

이 오류의 원인은 Apache error.log를 확인하십시오. – anubhava

+0

error.log를 확인하는 방법을 즉시 모릅니다. 하지만 새로운 정보가 있습니다. <파일 "staff.php">와을 삭제하면 문제가 해결됩니다. 물론 전체 사이트가 보호되지만 한 페이지 만 보호하려고합니다. – user1154435

+0

보안 'AuthUserFile {이 웹 서버의 문서 트리 외부에 저장되어 있는지 확인하십시오. 그것을 보호하는 디렉토리에 두지 마십시오. 그렇지 않으면, 클라이언트는'AuthUserFile'을 다운로드 할 수 있습니다. – toto21

답변

1

시험이 :

<FilesMatch "staff.php"> 
     Require valid-user 
     Order deny,allow 
     Deny from all 
     AuthUserFile /home/tedctcou/.pswrd 
     AuthType Basic 
     AuthName "Information for committee and board members. Please enter your login details to access this information." 
     Allow from 216.70.112.113 
     Satisfy Any 
    </FilesMatch> 
당신의 .pswrd 이동

!

+0

YE가 작동했습니다. 정말 고맙습니다! – user1154435