quote:
Originally posted by: JayCharles
IMO... trying to get FMS to proxy all of your HTTP traffic is going to be more headaches that it's worth. I would just run FMS and the HTTPD server separately on separate IP's, and let FMS pass HTTP requests for video files off to the existing HTTPD server.
quote:
Originally posted by: JayCharles
Sounds to me that FMS isn't set up to handle POST data, and therefore cannot pass it along to Apache. Perhaps someone from the FMS engineering team can confirm that or correct me.
quote:
Originally posted by: gkoo.ansis
As far as i've understood by reading the FMS's configuration files only the first connection is treated like an unknown http request.
quote:
Originally posted by: gkoo.ansis
When having a second connection ( eg. sending the post to the php file ) FMS reports the following:
2009-03-27 20:07:20 10178 (e)2611029 Bad network data; terminating connection : bad chunk version 117 on input stream
2009-03-27 20:07:20 10178 (e)2631029 Bad network data; terminating connection : (Adaptor: _defaultRoot_, VHost: Unknown, IP: , App:, Protocol: tunnel)
quote:
Originally posted by: gkoo.ansis
It all goes well and I can access php scripts for example residing on my apache installation. The problem is that when i'm trying to send a form with POST, instead of parsing the script, the connection gets terminated and i'm offered to download the php script which is an empty file.
Hi everyone
Abarnert, I hope you have not left this thread already.Two days ago I installed the FMS with the included Apache server. I also installed PHP after that ( I believe it is the same set up as user "gkoo.ansis" had). And I ran into exactly the same problem he/she did with the POST method. After reading your last message in this post I tried sending the POST directly to the server (e.g., http://example.com:8134/scripts/foo.php instead of just http://example.com/scripts/foo.php) and it WORKED. This however is bit inconvenient because when I try to run phpMyAdmin (for example) it naturally doesn't work and I guess I have to "fix" the POST methods in the files...anyways
I have attached the headers in the two cases - when I send the post to the default port (which doesn't work) and when I send it directly to 8134 (which works)
I hope the information is helpful (and still relevant of course, I see that the last response from you was almost 3 months ago)...
Any idea of how I might fix this is very appreciated as well
Thank you
Yavor
Hi, me again
I was browsing through the configuration files of FMS and I found this (the text pasted underheath) in the _defaultRoot_\Adaptor.xml file. Excuse me if I am completely out of line here since this is really new to me..but the errors we got from the POST method sound like they are caused by the failure of FMS to proxy the "unknown" requests therefore closing the connection.
I installed the FMS with the included Apache so by default the proxying should be set up ( I double checked and it really should be on with the correct settings)
<!-- This specifies whether we are redirecting unknown requests -->
<!-- to an external server. An unknown request may come in only -->
<!-- as the first request on a newly accepted connection, at any -->
<!-- other time it is considered an error, and the connection is -->
<!-- closed. Unknown requests are redirected by byte proxying to -->
<!-- the specified redirect host. For redirection to work http -->
<!-- tunneling must be enabled. -->
<!-- Request redirection to a specific host can be further -->
<!-- controlled based upon port on which the request arrived. -->
<!-- The maxbuf attribute determines how big the io buffers are. -->
<!-- Flow control kicks in when the buffer in either direction -->
<!-- fills up, automatically handling the case when producers -->
<!-- and consumers differ widely in bandwidth. -->
<Redirect enable="false" maxbuf="16384">
<Host port="80">:8080</Host>
<Host port="443">:8443</Host>
</Redirect>
<!-- This specifies whether we are proxying unknown requests to -->
<!-- to an external server. An unknown request may come in at -->
<!-- at any time, intermingled with tunneling requests. Unknown -->
<!-- requests are handled by byte proxying to the specified -->
<!-- proxy host, with some basic HTTP protocol handling. For -->
<!-- proxying to work, HTTP tunneling must be enabled. -->
<!-- Request proxying to a specific host can be further -->
<!-- controlled based upon port on which the request arrived. -->
<!-- The maxbuf attribute determines how big the io buffers are. -->
<!-- Flow control kicks in when the buffer in either direction -->
<!-- fills up, automatically handling the case when producers -->
<!-- and consumers differ widely in bandwidth. -->
<HttpProxy enable="true" maxbuf="16384">
<Host port="80">${HTTPPROXY.HOST}</Host>
</HttpProxy>
I am using FMS Development Edition 3.5.3 with the Apache installation that is delivered in the bundle. I installed PHP 5.3.2 on top of it.
The problem still exists. When I send a form parameters using the GET method, the request is processed correctly, the PHP script executes fine and everything works as expected. When I change my form to send a POST request to the server (together with changing the PHP script to receive the POST parameters), the request is not processed at all and I get an empty answer no matter what should come from the script. But if I change the form request to POST request addressed directly to port 8134, everything works fine again. Seems like the FMS can't forward POST requests properly to Apache.
Hi Ampo,
Would you mind emailing me awhilloc@adobe.com directly about this offlist. I'll assist in getting to the bottom of this reported issue.
Asa
was this issue ever solved? I am having difficulties with phpmyadmin running on FMS. I am able to get PHP working and the Apache server itself seems to be running fine. However, every time I try to login to phpmyadmin I am given a dialog box asking me "do you want to open or save this file" and the script itself never executes. I've been all over the web searching for an aswer to this and this forum matches my problem most closely. Previously I had the same configuration running with a standalone Apache server and had no problems at all. Please let me know if there is a solution to this.
By the way, in reference to my previous comment, I get the following errors in the server log:
Bad network data; terminating connection : bad chunck version 112 on input stream 01903308
Bad network data; terminating connection : (Adaptor: +defaultRoot_, VHost: Unknown, IP: , Protocol: Tunnel) : phpMyAdmin
North America
Europe, Middle East and Africa
Asia Pacific