PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Apache HTTP Interface  (Read 543 times)

bteixeira

  • Silver Member
  • ***
  • Posts: 27
    • View Profile
Apache HTTP Interface
« 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?

Stéphane Devouard

  • Diamond Member
  • *****
  • Posts: 122
  • PxPlus guru with skills in PHP, JS, C#, Java
    • View Profile
    • Stéphane's Web Resume
Re: Apache HTTP Interface
« Reply #1 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
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
Stéphane Devouard
Portfolio | Work

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Apache HTTP Interface
« Reply #2 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
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com