오늘은 대한입니다.
sun's longitude:299 47 7.60 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  

질문과 답변 게시판입니다.

현재 실시간으로 이곳 서버의 설정파일(몇개)를 보여주고 있습니다.
서버의 설정내용에 관한 질문은 먼저 이곳 서버의 설정내용을 참고하시길 바랍니다.

[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
2458 번 글의 답장글: Re: Re: 특정파일 엑세스
글쓴이: 산이 [홈페이지] 글쓴날: 2006년 03월 19일 19:45:05 일(저녁) 조회: 1827
http://linuxchannel.net/docs/order-apache-vs-proftpd.txt

일단 위의 URL 문서 참고하세요.

일부분(asf, avi, wma) 만 deny 하고 모두 allow 해야하기 때문에
allow 정책이 우선 와야 합니다.

즉

Oreder Allow,Deny
Allow from all
Deny from env=is_not_access

이렇게 설정해야 합니다.


[김성민]님이 남기신 글:

>아... 다시해보니
>VirtualHost 섹션안에는 Directory 로 하면 안되고,
><VirtualHost 127.0.0.1>
>  <Directory "/home/sungmin/www">
>    Order deny,allow
>    Deny from all
>    Allow from env=is_allow_access
>  </Directory>
></VirtualHost>
>
><VirtualHost 127.0.0.1>
>  ServerAdmin me@localhost.com
>  DocumentRoot /home/sungmin/www
>  ServerName domain.com
>  <location />
>    Order deny,allow
>    deny from all
>    allow from env=is_allow_access
>  </location>
></VirtualHost>
>
><location /> 을 이용하니 되네요??
>
>근데, 
>
>  <location />
>    Order deny,allow
>    deny from all
>    allow from env=is_allow_access
>  </location>
>
>이러면 되는데,
>
>  <location />
>    Order allow,deny
>    allow from env=is_allow_access
>    deny from all
>  </location>
>
>이렇게 allow 가 우선하고, deny 가 나중이면,
>일단 is_allow_access 해당하면 allow 고, 해당되지 않으면 deny
되는거 아닌가요? 이렇게 하니 전부 deny 되더군요.
>
>  <location />
>    Order deny,allow
>    deny from env!=is_allow_access
>  </location>
>
>이래야 맞는건가요?
>
>
>
>[김성민]님이 남기신 글:
>
>>안녕하세요.
>>
>>Apache에서요.. (httpd.conf)
>>
>>ServerName...
>>...생략...
>>
>>SetEnvIFNoCase Request_URI .(asf|avi|wma)$ is_not_access
>>SetEnvIFNoCase Request_URI .(gif|jpg|jpeg)$ is_allow_access
>>
>>############
>>## 사례 1 ##
>>############
>>
>><Directory /home/*>
>>  AllowOverride All
>>  Order allow,deny
>>  Allow from all
>>  Deny from env=is_not_access
>></Directory>
>>
>>...생략...
>>
>>############
>>## 사례 2 ##
>>############
>>
>><VirtualHost 127.0.0.1>
>>  ServerAdmin me@localhost.com
>>  DocumentRoot /home/sungmin/www
>>  ServerName domain.com
>>  <Directory "/home/sungmin/www">
>>    Order deny,allow
>>    Deny from all
>>    Allow from env=is_allow_access
>>  </Directory>
>></VirtualHost>
>>
>>이런식으로 했습니다.
>>
>>사례 1의 경우 is_not_access 에 정의된 영상파일을 금지하는
것이고,
>>사례 2의 경우 is_allow_access 에 정의된 이미지 파일은 허용하고
나머지는 거부한다는 목적으로 한 것입니다.
>>
>>근데, 아무것도 거부 안되고 다 됩니다.??
>>
>>/usr/local/apache/bin/httpd -t 검사해도 OK고,
>>재시작해도 에러없습니다.
>>
>>뭐 잘못 되었는지요?? 
>
>======================================== 

========================================

 
이전글 : Re: 특정파일 엑세스
 
 from 222.234.157.242
JS(Redhands)Board 0.4 +@

Re: 특정파일 엑세스
인쇄용 


apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds