Author | Topic: Problem with \cgi-bin | |
---|---|---|
Olaf870 | Problem with \cgi-bin on Fri, 18 May 2007 22:11:01 +0200 Hello, I just tried the Alaska-WAA-samples. All the samples are running, but only if I modifiy the Alaska-HTM-files: Original: <FORM ACTION="/cgi-bin/waa1gate.exe" METHOD=POST> Modified: <FORM ACTION="http://localhost/cgi-bin/waa1gate.exe" METHOD=POST> The httpd.conf.from Appache 2.0 includes the line: ScriptAlias /cgi-bin/ "C:/alaska/waa1w32/gateway/w32/" Somebody knows, what can be wrong with my configuration? regards Olaf870 | |
Phil Ide | Re: Problem with \cgi-bin on Tue, 22 May 2007 20:26:19 +0100 Olaf, > Original: > <FORM ACTION="/cgi-bin/waa1gate.exe" METHOD=POST> > > Modified: > <FORM ACTION="http://localhost/cgi-bin/waa1gate.exe" METHOD=POST> The original and modified version of the links are logically identical, so changing them won't make any different. > The httpd.conf.from Appache 2.0 includes the line: > ScriptAlias /cgi-bin/ "C:/alaska/waa1w32/gateway/w32/" > > Somebody knows, what can be wrong with my configuration? The only thing that can be wrong is that waa1gate.exe does not actually live in the directory specified as the right side of te ScriptAlias directive, so check that it is correct. Regards, Phil Ide --------------------- www.xbhcl.com www.pbih.eu www.idep.org.uk/xbase --------------------- It's not over until Milli Vanilli sings! | |
Olaf870 | Re: Problem with \cgi-bin on Wed, 23 May 2007 18:35:08 +0200 Phil, >> The httpd.conf.from Appache 2.0 includes the line: >> ScriptAlias /cgi-bin/ "C:/alaska/waa1w32/gateway/w32/" >> >> Somebody knows, what can be wrong with my configuration? >The only thing that can be wrong is that waa1gate.exe does not actually >live >in the directory specified as the right side of te ScriptAlias directive, >so >check that it is correct. Thanks for your help. I checked this:: C:>dir c:\alaska\waa1w32\gateway\w32\*.exe Datentrger in Laufwerk C: ist AMD_1300MHZ Volumeseriennummer: 364D-18FC Verzeichnis von c:\alaska\waa1w32\gateway\w32 27.04.2006 12:14 53.248 waa1gate.exe 1 Datei(en) 53.248 Bytes You can see that "waa1gate.exe" is in this directory. regards Olaf870 | |
Martin Altmann | Re: Problem with \cgi-bin on Wed, 23 May 2007 19:01:08 +0200 Olaf, your ScriptAlias has to point to a dircetory below your webroot. Regards, Martin ______________________________ Deutschsprachiges Xbase-Forum: http://www.xbaseforum.de/ ______________________________ | |
Thomas Braun | Re: Problem with \cgi-bin on Thu, 24 May 2007 08:46:51 +0200 Martin Altmann wrote: > Olaf, > your ScriptAlias has to point to a dircetory below your webroot. Of course not. Contrary, it is recommended not to put the script directory below the document root, note the remark in the red box: http://httpd.apache.org/docs/2.2/en/mod/mod_alias.html#scriptalias I don't think the problem is directly related to the scriptalias directive, otherwise a simple change in the request URL would not cause one request to work and the other to fail. Olaf, could you please post a few lines from the apache servers log, so we can see how the requests look like? And please, tell us the exact symptom of the failure - "it does not work" is not specific enough... HTH Thomas | |
Olaf870 | Re: Problem with \cgi-bin on Thu, 24 May 2007 17:32:20 +0200 Thanks you all for your help. Here is one line: 192.168.112.252 - - [24/May/2007:17:26:56 +0200] "GET /cgi-bin/waa1gate.exe?WAA_PACKAGE=test&WAA_FORM=lldemo HTTP/1.1" 200 1780 When I try to access withOut http://localhost infront, i dont get an entry in the log. regards Olaf870 "Thomas Braun" <spam@software-braun.de> schrieb im Newsbeitrag news:eic2k718fr5e$.129fp8fdxhbyh.dlg@40tude.net... > Martin Altmann wrote: > >> Olaf, >> your ScriptAlias has to point to a dircetory below your webroot. > > Of course not. > > Contrary, it is recommended not to put the script directory below the > document root, note the remark in the red box: > > http://httpd.apache.org/docs/2.2/en/mod/mod_alias.html#scriptalias > > I don't think the problem is directly related to the scriptalias > directive, > otherwise a simple change in the request URL would not cause one request > to > work and the other to fail. > > Olaf, could you please post a few lines from the apache servers log, so we > can see how the requests look like? > > And please, tell us the exact symptom of the failure - "it does not work" > is not specific enough... > > HTH > Thomas | |
Thomas Braun | Re: Problem with \cgi-bin on Fri, 25 May 2007 12:32:38 +0200 Olaf870 wrote: > Thanks you all for your help. > > Here is one line: > 192.168.112.252 - - [24/May/2007:17:26:56 +0200] "GET > /cgi-bin/waa1gate.exe?WAA_PACKAGE=test&WAA_FORM=lldemo HTTP/1.1" 200 1780 > When I try to access withOut http://localhost infront, i don´t get an entry > in the log. The above is from access.log - right? There is really nothing in error.log? May I repeat my last question: What is the symptom? (=what message in the browser?) Thomas | |
Olaf870 | Re: Problem with \cgi-bin on Fri, 25 May 2007 16:28:32 +0200 Thomas >> Here is one line: >> 192.168.112.252 - - [24/May/2007:17:26:56 +0200] "GET >> /cgi-bin/waa1gate.exe?WAA_PACKAGE=test&WAA_FORM=lldemo HTTP/1.1" 200 1780 >> When I try to access withOut http://localhost infront, i dont get an >> entry >> in the log. > > The above is from access.log - right? Yes. Right. > > There is really nothing in error.log? Only the normal things, I think > > May I repeat my last question: What is the symptom? (=what message in the > browser?) There is not any message. The click is just doing nothing. I attached all the relevant files. All entries in access.log result from calling http://localhost in front off "/cgi-bin/". I http://localhost is missing, there is no action, when I call my page from the same computer where Apache is running. Perhaps this can be helpful for analyse the problem: When I access on the same computer via dynalias.org, I can see my pages with and without http://localhost in front too. When I access from another computer via Internet and dynalias.org get a error-message from the IExplorer: "The page cannot be displayed ..". regards Olaf870 httpd.conf error.log access.log | |
Martin Altmann | Re: Problem with \cgi-bin on Fri, 25 May 2007 23:41:32 +0200 Olaf, if it is working from inside, it is working from outside as well (as far as Apache and WAA is concerned!!) Have you configured your firewall to accept incoming http-calls (via port 80) and route it to your local IP (of the pc your Apache is running on)? The latter is only necessary when running a HW firewall (router).... Regards, Martin ______________________________ Deutschsprachiges Xbase-Forum: http://www.xbaseforum.de/ ______________________________ | |
Olaf870 | Re: Problem with \cgi-bin on Tue, 29 May 2007 10:22:23 +0200 Martin, thank you for your answer. > Have you configured your firewall to accept incoming http-calls (via port > 80) and route it to your local IP (of the pc your Apache is running on)? Yes, I did. The problem is really difficult: It is not running from inside in all cases. Let us perhaps concentrate at the following point: All the alaska-waa-samples dont run with unchanged code: I have I have to add "http://localhost/" in from off /CGI-BIN/.... to make them run. I remember well that with Apache 1.5 all the alaska-samples were running fine... Can somebody can send me perhaps his good-running "httpd.conf" with the alaska-standard-directories? regards Olaf870 "Martin Altmann" <Altmann@altem.de> schrieb im Newsbeitrag news:54346ea4$684438f2$e2d58@news.alaska-software.com... > Olaf, > if it is working from inside, it is working from outside as well (as far > as Apache and WAA is concerned!!) > Have you configured your firewall to accept incoming http-calls (via port > 80) and route it to your local IP (of the pc your Apache is running on)? > The latter is only necessary when running a HW firewall (router).... > > Regards, > Martin > > -- > > ______________________________ > > Deutschsprachiges Xbase-Forum: > http://www.xbaseforum.de/ > ______________________________ > | |
Olaf870 | Re: Problem with \cgi-bin on Tue, 05 Jun 2007 20:06:04 +0200 Hi all, problem solved. When I call the Alaska-samples it like this: "iexplorer localhost" all is running without modifications (docroot is "iexplorer c:\alaska\waa1w32\source\samples\waa") I the past I tried allways this: "iexplorer c:\alaska\waa1w32\source\samples\waa" Regards Olaf870 | |
Phil Ide | Re: Problem with \cgi-bin on Thu, 07 Jun 2007 15:35:49 +0100 Olaf, > problem solved. > > When I call the Alaska-samples it like this: > "iexplorer localhost" > all is running without modifications (docroot is > "iexplorer c:\alaska\waa1w32\source\samples\waa") > > I the past I tried allways this: > "iexplorer c:\alaska\waa1w32\source\samples\waa" That would explain it. In the top example, you are invoking the web page via HTTP, in the second example, you are just opening a local file. Regards, Phil Ide --------------------- www.xbhcl.com www.pbih.eu www.idep.org.uk/xbase --------------------- Life is anything that dies when you stomp it! |