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°í,
>>Àç½ÃÀÛÇصµ ¿¡·¯¾ø½À´Ï´Ù.
>>
>>¹¹ À߸ø µÇ¾ú´ÂÁö¿ä??
>
>========================================
========================================
|