This is a discussion on Call script1 if GET and script2 if POST within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello: I am trying to put a front end processor to an existing binary. I do not have access to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello:
I am trying to put a front end processor to an existing binary. I do not have access to the binary (ccweb) and I do not have access to the source files for apache (rwp). The only modules I have access to are listed below. The conf that I am working with is also below. I cannot install a newer version of perl. (running 5.005.03) I am looking for simplest solution to this problem. Currently as it stands I can call s1 (script1) and then call s2 (script2). s1 is just has a bit of authorization perl code inside of it (not shown below). s2 is the existing binary which I have no access to. When the request is of type GET s1 calling s2 works just fine. When the request is of type POST s1 calling s2 does not work. instead s2 sucks up %100 cpu. I need a way to have Apache call s1 when method is GET and s2 when of type PUT. I have no control over the html and the urls which are generate from s2. Therefore I am somewhat limited in making changes to paths and urls in the conf file. Any help would be greatly appreciated. Thanks! ################################## # This is the code for s1 which calls s2 (ccweb) ################################## open(PH, "/opt/rational/clearcase/web/bin/ccweb 2>&1 |"); while (<PH>) { print $_; } close(PH); ################################## # What modules are loaded. ################################## # mod_ssl.so is loaded in ssl.conf, LoadModule access_module bin/mod_access.so LoadModule alias_module bin/mod_alias.so LoadModule autoindex_module bin/mod_autoindex.so LoadModule cgi_module bin/mod_cgi.so LoadModule dir_module bin/mod_dir.so LoadModule env_module bin/mod_env.so LoadModule expires_module bin/mod_expires.so LoadModule include_module bin/mod_include.so LoadModule info_module bin/mod_info.so LoadModule jk_module bin/mod_jk.so LoadModule log_config_module bin/mod_log_config.so LoadModule mime_module bin/mod_mime.so LoadModule negotiation_module bin/mod_negotiation.so LoadModule rewrite_module bin/mod_rewrite.so LoadModule setenvif_module bin/mod_setenvif.so LoadModule status_module bin/mod_status.so LoadModule deflate_module bin/mod_deflate.so ################################## ## Include conf file ################################## ScriptAlias /ccweb/bin "/opt/rational/clearcase/web/bin" Alias /ccweb "/opt/rational/clearcase/web" <Location /ccweb> DirectoryIndex bin/ccweb Options -Indexes AddOutputFilterByType DEFLATE text/html text/plain text/xml </Location> |