proftpd mod_rewrite utf8trans 설정법좀 가르쳐주십시오.

송효진의 이미지
14139
points
0
points

http://proftpd.oops.org/wait_modify.php?id=271&key=RewriteMap&class=r

mod_rewrite 는 설치했고,
설정을 하려 하는데, 아무리 봐도 예제 없이는 못하겠습니다.
utf8 로 컨버팅 하는 옵션은 분명한것 같고요.

이걸로 utf8 설정해서 쓰시는 분 있으시면 조언 부탁합니다.

codebank의 이미지
21884
points

이상하네요...

0
points

google에서도 발견되지 않으니 사용방법을 알 수가 없어서 소스를 받아서
살펴보다보니 doc디렉토리에서 유사한(직접적인 부분은 아닙니다.) 예제를
볼 수가 있었습니다. utf8trans와 같이 포함되어있는 함수인 toupper의
예제입니다.
실제 파일은 소스파일중 doc/contrib/mod_rewrite.html 를 참조했습니다.
--------------------------------------------------------------------
Examples
The following example configuration shows how to configure mod_rewrite so that all files uploaded to the server will have all-uppercase filenames:


RewriteEngine on

# Have a log for double-checking any errors
RewriteLog /var/log/ftpd/rewrite.log

# Define a map that uses the internal "toupper" function
RewriteMap uppercase int:toupper

# Make the file names used by STOR be in all uppercase
RewriteCondition %m STOR

# Apply the map to the command parameters
RewriteRule ^(.*) ${uppercase:$1}

This example shows how to convert all spaces in uploaded file names to underscores:

RewriteEngine on
RewriteLog /var/log/ftpd/rewrite.log

# Define a map that uses the internal "replaceall" function
RewriteMap replace int:replaceall

# We only want to use this rule on STOR commands
RewriteCondition %m STOR

# Apply the map to the command parameters
RewriteRule ^(.*) "${replace:/$1/ /_}"


--------------------------------------------------------------------
직접적인 것은 아니라도 도움이 될지 모르겠지만 대충 찾아보아 위 예제만
보이는 것 같네요. (혹시 /usr/share/doc/proftpd 밑에도 있을지 모르겠네요.)
------------------------------
좋은 하루 되세요.

댓글 보기 옵션

원하시는 댓글 전시 방법을 선택한 다음 "설정 저장"을 누르셔서 적용하십시오.