Main Board > Web Services

Setup EZWeb server on RedHat Linux 8.x Server

<< < (5/5)

Mike King:
There is no single variable that has the full URL but you can find the various components of the URL in order to reconstruct it.

Given an example of:   https://www.pvxplus.com/example.pxp?id=999&wo=1234567

%HTTP_HOST$ will have "www.pvxplus.com"
%Document_URI$ will have "/example.pxp"
%Query_String$ will have "id=999&wo=1234567"

You will also be able to determine if you need to prefix with http or https by checking if %server_secure = 1

BTW: A simple trick I use to find all the global variable settings is to create a small PxPlus program called 'dump.pxp' in the root of the site with one line

 0010 A=1/0 ! Divide by zero to force dump

If I want to see what the global settings are I simply change the program name on the URL to dump.pxp and the system will give me a dump of all the global variables and other values that are being passed to my program.

nmartinez@bristolind.com:
Thank you, Mike!!  awesome information!!

nmartinez@bristolind.com:
Hi Mike,
How do we make sure our EZWeb Server is secure?  we are only allowing https, but don't know if there are ways to access the admin configuration section of it.. would like to make sure all holes (if any) are closed. In the document root (the parameter we added when starting the EZWeb Server on the RHEL Linux server) we have only the .pxp file.  My concern is that there might be some way to access the configuration of EZWeb Server by providing something else on the URL that I am not aware of.. 
Sorry for all the questions  :D
Thank you!!

Navigation

[0] Message Index

[*] Previous page

Go to full version