PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: bteixeira on January 03, 2023, 11:46:20 AM

Title: Apache HTTP Interface
Post by: bteixeira on January 03, 2023, 11:46:20 AM
The HTTP interface, where you receive a request and are writing to %print_fn with the html (or xml or json or whatever) that you want to return... does it have to be Apache?  In the documentation there's clearly scripting info in a .cgi file to say start PxPlus and runs *plus/apache/pxp_cgi.  Is there anything in there that requires Apache rather than a different web server?  For example, could I have an equivalent script in IIS that runs PxPlus *plus/apache/pxp_cgi and it will forward the web request and return the response to IIS?
Title: Re: Apache HTTP Interface
Post by: Stéphane Devouard on January 07, 2023, 02:26:14 AM
Hi
Up to 4 years ago, the Apache interface used to be compatible with IIS as well and there were some information about it in the « Running on the web » section of the doc IIRC.
It looks like this information has been moved to the Webster+ docs at
https://manual.pvxplus.com/PXPLUS/Webster/Webster%20Setup.htm#iis_setup (https://manual.pvxplus.com/PXPLUS/Webster/Webster%20Setup.htm#iis_setup)
Basically you need to create a CGI handler for the .pxp file extension in IIS, and give all you web-based programs this common extension, and you should be good to go.
Hope this helps
Title: Re: Apache HTTP Interface
Post by: Mike King on January 09, 2023, 09:48:12 AM
Just to confirm what Stéphane posted, you can use IIS or pretty much any web server to launch PxPlus using CGI.

Make sure you add the PxPlus web program prefix to IIS as shown in the attached image