Forum Moderators: phranque
An industrial equipment is connected to the network and retrieve a configuraiton file with a http request.
I've installed on a linux server and apache 2.0.53.
The Equipment do this request:
GET /netconf01.xml HTTP/1.1
and Apache reply:
HTTP/1.1 400 Bad Request
error_log is:
client sent HTTP/1.1 request without hostname (see RFC2616 section 14. 23): /netconf01.xml
This is a 1.0 request and not a 1.1 but i can't change request string in this Equipement. How I can solve this? There are some paticular directive in apache configuration file?
The problem is thet I can't ask equipment maker for correct this error beacuse hi tell that this equipement work only if using his configurator engine software...
So I can do 2 things:
1) To Spend a lot of money and buy configuraotr engine
2) Solve this in httpd.conf
I'm thinking to install another webserver, configure it for listening on another port that 80 and using iptables redirect all request of equipment IP from port 80 to the port of the other webserver.
[httpd.apache.org...]
If I understand the docs correctly, downgrade-1.0 will make Apache see the equipment's request as an HTTP 1.0 request which doesn't require the host to be specified. That may be enough to make it work. Otherwise, the force-response-1.0 option can be added to force Apache to respond using the HTTP 1.0 protocol.
-- Roger