[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: [users@httpd] Re: mod_echo configuration
From: Christophe JAILLET <christophe.jaillet () wanadoo ! fr>
Date: 2019-03-29 15:29:12
Message-ID: 0a057be9-cc23-f192-6438-ca551ad386b3 () wanadoo ! fr
[Download RAW message or body]
Just, for the records.
On 28/03/2019 19:46, Marion & Christophe JAILLET wrote:
> Le 28/03/2019 à 15:37, anthony a écrit :
>> Hello,
>>
>> I am new on this mailing list and I hope to find an answer on my
>> apache2 configuration problem.
>>
>> My OS : Linux openSUSE 15.2 64 bit
>> Apache : apache2 2.4.33 standard install
>> browser url : local host --> It works!
>>
>> I try to use apache as a echo server for telnet.
>>
>> reading https://httpd.apache.org/docs/2.4/mod/mod_echo.html
>> "It provides a simple echo server. Telnet to it and type stuff, and
>> it will echo it."
>>
>> What I did : # a2enmod echo
>> # apache2ctl -M --> see : echo_module (shared)
>> # edit /etc/apache2/global.conf --> add : ProtocolEcho On
>> # apache2ctl restart
>>
>> Test:
>> # telnet localhost --> connection refused
>> # telnet localhost 80 --> ... <h1>Bad request!</h1> ...
>>
>> The firewall is disabled.
>>
>> Reading the manual and google I am not able to correctly configure this.
>> Can you assist me or give a hint?
>> Anthony
>
> Hi
>
> just tested locally and it works as expected with:
> telnet localhost 80
>
> When ProtocolEcho is not defined, I get the bad request you get.
>
>
> What system are you running?
> What httpd version are you using?
>
> Base on https://wiki.apache.org/httpd/DistrosDefaultLayout, using
> /etc/apache2/global.conf looks unusual.
> Are you sure that it is loaded?
> (an easy way to check is to write a bogus directive (ProtocolEchoXXXXX
> On) and check if apache2ctl restart works or not)
>
> CJ
Dear Cristophe,
thanks for your answer, it was spot-on. I use openSUSE 15.2 which uses
systemd to initialize. In the file /etc/apache2/httpd.conf is mentioned
that loadmodule.conf and global.conf are not loaded in systems started
via systemd. Putting the command 'ProtocolEcho On' in httpd.conf gave me
the expected behaviour. Thanks.
Anthony
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">
Just, for the records.<br>
</div>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode"><br>
</div>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">On 28/03/2019 19:46, Marion
& Christophe JAILLET wrote:
<br>
<blockquote type="cite" style="color: #3333FF;">Le 28/03/2019 à
15:37, anthony a écrit :
<br>
<blockquote type="cite" style="color: #3333FF;">Hello,
<br>
<br>
I am new on this mailing list and I hope to find an answer on
my apache2 configuration problem.
<br>
<br>
My OS : Linux openSUSE 15.2 64 bit
<br>
Apache : apache2 2.4.33 standard install
<br>
browser url : local host --> It works!
<br>
<br>
I try to use apache as a echo server for telnet.
<br>
<br>
reading <a class="moz-txt-link-freetext"
href="https://httpd.apache.org/docs/2.4/mod/mod_echo.html">https://httpd.apache.org/docs/2.4/mod/mod_echo.html</a>
<br>
"It provides a simple echo server. Telnet to it and type
stuff, and it will echo it."
<br>
<br>
What I did : # a2enmod echo
<br>
# apache2ctl -M --> see : echo_module (shared)
<br>
# edit /etc/apache2/global.conf --> add : ProtocolEcho On
<br>
# apache2ctl restart
<br>
<br>
Test:
<br>
# telnet localhost --> connection refused
<br>
# telnet localhost 80 --> ... <h1>Bad
request!</h1> ...
<br>
<br>
The firewall is disabled.
<br>
<br>
Reading the manual and google I am not able to correctly
configure this.
<br>
Can you assist me or give a hint?
<br>
Anthony
<br>
</blockquote>
<br>
Hi
<br>
<br>
just tested locally and it works as expected with:
<br>
telnet localhost 80
<br>
<br>
When ProtocolEcho is not defined, I get the bad request you get.
<br>
<br>
<br>
What system are you running?
<br>
What httpd version are you using?
<br>
<br>
Base on <a class="moz-txt-link-freetext"
href="https://wiki.apache.org/httpd/DistrosDefaultLayout">https://wiki.apache.org/httpd/DistrosDefaultLayout</a>,
using /etc/apache2/global.conf looks unusual.
<br>
Are you sure that it is loaded?
<br>
(an easy way to check is to write a bogus directive
(ProtocolEchoXXXXX On) and check if apache2ctl restart works or
not)
<br>
<br>
CJ
<br>
</blockquote>
<br>
<br>
Dear Cristophe,
<br>
<br>
thanks for your answer, it was spot-on. I use openSUSE 15.2 which
uses systemd to initialize. In the file /etc/apache2/httpd.conf is
mentioned that loadmodule.conf and global.conf are not loaded in
systems started via systemd. Putting the command 'ProtocolEcho On'
in httpd.conf gave me the expected behaviour. Thanks.
<br>
<br>
Anthony
<br>
<br>
<br>
<br>
</div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic