LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] disable .htaccess

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2011, 09:05 AM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
Default [solved] disable .htaccess

hello,
i use this for disable htaccess on my server
hackers can use htaccess to active perl by this way

they add this to htaccess like
Options FollowSymLinks MultiViews Indexes ExecCGI AddType application/x-httpd-cgi .cin AddHandler cgi-script .cin AddHandler cgi-script .cin

also i use this steps to stop it but htaccess working yet
Quote:
Originally Posted by NiteWave View Post
tested on our cPanel box, the setting:

admin console->Server->Request Filter->Disable .htaccess Override:Yes

apply for virtual hosts defined in apache httpd.conf.

Last edited by NiteWave; 10-30-2011 at 07:16 PM..
Reply With Quote
  #2  
Old 10-29-2011, 01:36 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You have to disable "AllowOverride" from Apache httpd.conf.
Reply With Quote
  #3  
Old 10-29-2011, 01:37 PM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
i did, but i steep working yet
Code:
<Directory "/">
    Options -ExecCGI -FollowSymLinks -Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch
    AllowOverride AuthConfig Indexes Limit FileInfo Options=IncludesNOEXEC,Indexes,Includes,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks
</Directory>
Reply With Quote
  #4  
Old 10-29-2011, 01:43 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Your AllowOverride allow too much, check "AddType" ,"AddHandler" documentation, and disable the option that allow overriding those.
Reply With Quote
  #5  
Old 10-29-2011, 07:41 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
http://httpd.apache.org/docs/2.2/mod...e.html#addtype

You have to turn off "FileInfo" override to disable "AddType" and "AddHandler" directives in .htaccess.
Reply With Quote
  #6  
Old 10-29-2011, 07:48 PM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
can you to tell me how i can turn off "FileInfo"

on Cpanel Apache i just add this line for htaccess,
Quote:
<Directory "/">
Options -ExecCGI -FollowSymLinks -Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch
AllowOverride AuthConfig Indexes Limit FileInfo Options=IncludesNOEXEC,Indexes,Includes,MultiViews ,SymLinksIfOwnerMatch,FollowSymLinks
</Directory>
its disabled "AddType" and "AddHandler"
but from your apach ddt work
Reply With Quote
  #7  
Old 10-29-2011, 07:52 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
remove "FileInfo" from "AllowOverride" directive.
Reply With Quote
  #8  
Old 10-29-2011, 07:58 PM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
root@server1 [~]# find /usr/local -name httpd.conf /usr/local/lsws/add-ons/frontpage/conf/httpd.conf
/usr/local/apache/conf/original/httpd.conf
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf_pre_ea3/original/httpd.conf
/usr/local/apache/conf_pre_ea3/httpd.conf

i have remove it from
/usr/local/apache/conf_pre_ea3/httpd.conf
and
/usr/local/apache/conf/httpd.conf

but htaccess addtyme and addhandler is working yet
did i must restart something?
Reply With Quote
  #9  
Old 10-30-2011, 07:16 AM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
after restart Apache it disabled! also SEO is disable from my server i ddt want disable SEO
Reply With Quote
  #10  
Old 10-30-2011, 02:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
There is no way to around it, if you disable "FileInfo", all configuration require "FileInfo" override will be disabled too. You have to make decisions based on what is the most important to you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:28 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.