2016-12-23 5 views
2

저는 OpenLinespeed 웹 서버의 신규 사용자입니다. 이전에는 웹 서버에 Apache를 사용했습니다. 이제 OpenLitespeed에서 보안 목적으로 .htaccess에 대해 혼란스러워하고 있습니다. 내 htaccess로 규칙 아래OpenLitespeed htaccess

내가 OpenLiteSpeed ​​웹 서버에서이 규칙을 사용하는 방법

IndexIgnore *.css *.js *.png *.jpg 
Options -Indexes 
ErrorDocument 400 index.php 
ErrorDocument 403 index.php 
ErrorDocument 404 index.php 
ErrorDocument 500 index.php 

<Files ~ "\.optl$"> 
Order allow,deny 
Deny from all 
</Files> 

아파치

에 좋은 작품? 당신이

+0

동일한 문제가 발생했습니다. – harrrrrrry

답변

0

나는 이것이 정답이다 확실하지 않다 감사,하지만 난 당신이 그것을 필요로하는 경우에 여기에 넣어 :

OpenLitespeed 다른 방법으로의 .htaccess를 지원합니다. 당신은 OpenLiteSpeed ​​관리 콘솔로의 .htaccess에서 재 작성 규칙을 복사하여 붙여 넣을 수 있습니다 :

https://serverfault.com/questions/538249/does-openlitespeed-support-apache-rewrites

업데이트 : 지금이 문제를 만난 네 그냥 테스트. 그것은 효과가있었습니다.