httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liu JinGang" <li...@cn.fujitsu.com>
Subject [users@httpd] Apache httpd question(emergent)
Date Tue, 29 Mar 2011 02:36:03 GMT
HTTPD Group:

 

I'm sorry to trouble you, but I have a emergent question than I couldn't have an answer. I
hope that someone can give me an answer.

 

I modified my httpd.conf as following:

 

TraceEnable Off 
<Directory "/opt/web/htroot"> 
Options FollowSymLinks ExecCGI 
AllowOverride all 
order allow,deny 
allow from all 
</Directory>

 

Then I use httprequest to access the CGI file of "/opt/web/htroot".

I konw that HTTP TRACE canot access the CGI file, but why DELETE/PUT/HOGE (this http method
isn't exsit,as "AAAA"...) can access the CGI file.

I really don't understand. About ExecCGI ?

 

-bash-3.2# telnet 169.254.1.80 80
Trying 169.254.1.80...
Connected to 169.254.1.80.
Escape character is '^]'.

PUT /config/shared/web_envpl.cgi HTTP/1.1

HOST: 169.254.1.80

 

HTTP/1.1 200 OK

Date: Tue, 22 Mar 2011 00:27:50 GMT

Server: Apache

Transfer-Encoding: chunked

Content-Type: text/xml; charset=ISO-8859-1

 

293

<?xml version="1.0"?>

<webconsole_env List="0,1,2,3,"/>

0

DELETE /config/shared/web_envpl.cgi HTTP/1.1

HOST: 169.254.1.80

 

HTTP/1.1 200 OK

Date: Tue, 22 Mar 2011 00:27:50 GMT

Server: Apache

Transfer-Encoding: chunked

Content-Type: text/xml; charset=ISO-8859-1

 

293

<?xml version="1.0"?>

<webconsole_env List="0,1,2,3,"/>

0

 

HOGE /config/shared/web_envpl.cgi HTTP/1.1

HOST: 169.254.1.80

 

HTTP/1.1 200 OK

Date: Tue, 22 Mar 2011 00:27:50 GMT

Server: Apache

Transfer-Encoding: chunked

Content-Type: text/xml; charset=ISO-8859-1

 

293

<?xml version="1.0"?>

<webconsole_env List="0,1,2,3,"/>

0

TRACE /config/shared/web_envpl.cgi HTTP/1.1

HOST: 169.254.1.80

 

HTTP/1.1 403 Forbidden

Date: Fri, 18 Mar 2011 11:28:34 GMT

Server: Apache

Connection: close

Transfer-Encoding: chunked

Content-Type: text/html; charset=iso-8859-1

 

e1 

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>

<TITLE>403 Forbidden</TITLE>

</HEAD><BODY>

<H1>Forbidden</H1>

You don't have permission to access /config/shared/web_envpl.cgi

on this server.<P>

</BODY></HTML>

 

Connection closed by foreign host.

-bash-3.2#

And then if I access the HTML file of "/opt/web/htroot" , the result as following:

The GET, HEAD, OPTIONS can access the HTML file. I don't set the 

limits except TRACE. This is the default ?

 

-bash-3.2# telnet 169.254.1.80 80

Trying 169.254.1.80...

Connected to 169.254.1.80.

Escape character is '^]'.

PUT /index.html HTTP/1.1

HOST: 169.254.1.80

 

HTTP/1.1 405 Method Not Allowed

Date: Tue, 22 Mar 2011 01:07:20 GMT

Server: Apache

Allow: GET, HEAD, OPTIONS

Transfer-Encoding: chunked

Content-Type: text/html; charset=iso-8859-1

 

e3

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>

<TITLE>405 Method Not Allowed</TITLE>

</HEAD><BODY>

<H1>Method Not Allowed</H1>

The requested method PUT is not allowed for the URL /index.html.<P>

</BODY></HTML>

 

0

 

Connection closed by foreign host.

-bash-3.2# telnet 169.254.1.80 80

Trying 169.254.1.80...

Connected to 169.254.1.80.

Escape character is '^]'.

DELETE /index.html HTTP/1.1

HOST: 169.254.1.80

 

HTTP/1.1 405 Method Not Allowed

Date: Tue, 22 Mar 2011 01:08:22 GMT

Server: Apache

Allow: GET, HEAD, OPTIONS

Transfer-Encoding: chunked

Content-Type: text/html; charset=iso-8859-1

 

e6

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>

<TITLE>405 Method Not Allowed</TITLE>

</HEAD><BODY>

<H1>Method Not Allowed</H1>

The requested method DELETE is not allowed for the URL /index.html.<P>

</BODY></HTML>

 

0

 

Connection closed by foreign host.

-bash-3.2# 

-bash-3.2# telnet 169.254.1.80 80

Trying 169.254.1.80...

Connected to 169.254.1.80.

Escape character is '^]'.

TRACK /index.html HTTP/1.1

HOST: 169.254.1.80

 

HTTP/1.1 501 Method Not Implemented

Date: Tue, 22 Mar 2011 01:09:29 GMT

Server: Apache

Allow: GET, HEAD, OPTIONS

Connection: close

Transfer-Encoding: chunked

Content-Type: text/html; charset=iso-8859-1

 

106

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>

<TITLE>501 Method Not Implemented</TITLE>

</HEAD><BODY>

<H1>Method Not Implemented</H1>

TRACK to /index.html not supported.<P>

Invalid method in request TRACK /index.html HTTP/1.1<P>

</BODY></HTML>

 

0

 

Connection closed by foreign host.

-bash-3.2#

 

                       Best regards!                                       

                       Nacrum

 


Mime
View raw message