You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by anthony <a...@ve1.nl> on 2019/03/28 14:37:52 UTC

[users@httpd] mod_echo configuration

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: mod_echo configuration

Posted by Christophe JAILLET <ch...@wanadoo.fr>.
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




[users@httpd] Re: mod_echo configuration

Posted by Marion & Christophe JAILLET <ch...@wanadoo.fr>.
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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org