|
|

10-29-2011, 09:05 AM
|
|
Member
|
|
Join Date: Oct 2011
Posts: 21
|
|
[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..
|

10-29-2011, 01:36 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,603
|
|
|
You have to disable "AllowOverride" from Apache httpd.conf.
|

10-29-2011, 01:37 PM
|
|
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>
|

10-29-2011, 01:43 PM
|
|
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.
|

10-29-2011, 07:48 PM
|
|
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
|

10-29-2011, 07:52 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,603
|
|
|
remove "FileInfo" from "AllowOverride" directive.
|

10-29-2011, 07:58 PM
|
|
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?
|

10-30-2011, 07:16 AM
|
|
Member
|
|
Join Date: Oct 2011
Posts: 21
|
|
|
after restart Apache it disabled! also SEO is disable from my server i ddt want disable SEO
|

10-30-2011, 02:53 PM
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:28 AM.
|
|