httpd Manual Column Directory Vulnerability

Source: Internet
Author: User
Tags apache tomcat

One, the following sets the access alias of the Apche manual:

Set access permissions for the/var/www/manual directory

Alias/manual "/var/www/manual" <directory "/var/www/manual" > Options Indexes followsymlinks multiviews AllowOv Erride None Order Allow,deny allow from all </Directory>

The above settings can be accessed manual this directory and all files under the directory, if you do not want to access this directory files can be set to options-indexes followsymlinks multiviews//or write as "Options FollowSymLinks MultiViews "


To prevent the manual directory from being detected as a column directory vulnerability, you need to restrict its access to the following workarounds:

Second, set Apche manual directory is not allowed to be accessed:

Alias/manual "/var/www/manual" <directory "/var/www/manual" > Options followsymlinks multiviews All Owoverride None Order Deny,allow deny from all </Directory>


How does Apache tomcat protect against directory traversal vulnerabilities?

1. Edit Apache's httpd.conf

Find the Indexs in "Options Indexes multiviews" and Change to "options MultiViews".

2. Edit Tomcat's conf/web.xml to find

  <servlet>                         <servlet-name>default</servlet-name >        <servlet-class> org.apache.catalina.servlets.defaultservlet</servlet-class>         <init-param>                      <param-name>debug</param-name>             <param-value>0</param-value>                                               </init-param>                <init-param>                       <param-name>listings</param-name>             <param-value>false</param-value>                                          </init-param>                 <load-on-startup >1</load-on-startup>    </servlet>

Change the true of this line to false.

When you are finished editing, remember to restart the appropriate service to take effect.


This article is from "Operation and maintenance record Mei Ling" blog, please be sure to keep this source http://meiling.blog.51cto.com/6220221/1977352

httpd Manual Column Directory Vulnerability

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.