Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS에서 URL 재작성 체크가 안되는 문제 #1135

Closed
YJSoft opened this issue Jan 5, 2015 · 2 comments
Closed

IIS에서 URL 재작성 체크가 안되는 문제 #1135

YJSoft opened this issue Jan 5, 2015 · 2 comments

Comments

@YJSoft
Copy link
Contributor

YJSoft commented Jan 5, 2015

소켓 쿼리문이 C:/******/xe179//JUST/CHECK/REWRITE/files/config/tmpRewriteCheck.txt 과 같이 잘못 작성되어 URL 재작성 규칙을 등록해도 제대로 확인이 안됩니다.

@YJSoft
Copy link
Contributor Author

YJSoft commented Jan 5, 2015

문제 원인

IIS에서는 $_SERVER['document_root']C:\경로 와 같이 역슬래시를 경로 구분자로 사용하는 반면,_XE_PATH_에서는 C:/경로와 같이 슬래시를 경로 구분자로 사용하기에 URL 재작성 테스트시 문제가 발생합니다.(절대 경로가 체크 쿼리에 삽입됩니다)

해결책

윈도우 서버에서는 역슬래시를 슬래시로 치환해서 문제를 해결할 수 있습니다.

$currentPath = str_replace(str_replace("\\","/",$_SERVER['DOCUMENT_ROOT']),"",_XE_PATH_);

@YJSoft YJSoft closed this as completed Jan 5, 2015
ghost pushed a commit that referenced this issue Jan 5, 2015
@ghost ghost added the type/bug label Jan 5, 2015
@ghost ghost added this to the 1.7.9 milestone Jan 5, 2015
@ghost ghost self-assigned this Jan 5, 2015
@ghost
Copy link

ghost commented Jan 5, 2015

fixed f55f193

@ghost ghost removed this from the 1.7.9 milestone Jan 5, 2015
@ghost ghost added status/duplicate and removed type/bug labels Jan 5, 2015
@ghost ghost removed their assignment Jan 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant