Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 10 of 10 total |
Why Is PHP Script Downloaded Instead Of Running? |
Sat, Nov 10 2018 10:51 AM | Permanent Link |
Frederick Chin | I seem to be missing something with running a simple PHP script.
<html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html> My VPS is running Windows Server 2012 and I have EWB's web server running as a service. The content folder for EWB is c:\cwebprg. EWB's web applications and other HTML pages run fine when dropped into the content folder. If I drop the above PHP script into the folder and call it from a web browser, the PHP script is downloaded instead of being run. What am I missing here? -- Frederick |
Sat, Nov 10 2018 12:29 PM | Permanent Link |
Uli Becker | Frederick,
uses I misunderstand your post, you need a php server to get what you want. EWB server doesn't know anything about php. Uli |
Sat, Nov 10 2018 6:37 PM | Permanent Link |
Frederick Chin | Uli,
/* uses I misunderstand your post, you need a php server to get what you want. EWB server doesn't know anything about php. */ That's what I suspected. Currently, I have Stunnel and EWB server running and the https requests go to Stunnel first before going to the EWB server. If I have IIS running as well to handle PHP, how will this affect the Stunnel and EWB server installation? If Stunnel intercepts a https request, how will it know which web server to pass the request to? -- Frederick |
Sun, Nov 11 2018 4:28 AM | Permanent Link |
Uli Becker | Frederick,
> If I have IIS running as well to handle PHP, how will this affect the Stunnel and EWB server installation? If Stunnel intercepts a https request, how will it know which web server to pass the request to? You need to use different ports, your config-file of sTunnel should like like this: ************************************************************************** ; * Service definitions (at least one service has to be defined) ************************************************************************** [https] accept = 440 connect = 8050 [https] accept = 443 connect = 8090 [https] accept = 444 connect = 8091 An URL looks like this e.g.: https://MyWebSite.com:444/index.html Since port 443 is the default port for secure connections you can skip this port in the url. Uli |
Sun, Nov 11 2018 10:25 AM | Permanent Link |
Frederick Chin | Uli,
/* You need to use different ports, your config-file of sTunnel should like like this: */ Let's say I configure two https ports in Stunnel. Port 443 is for IIS and port 444 is for the EWB server. [https] accept = 443 connect = 8050 [https] accept = 444 connect = 8090 When I call up a PHP script from IIS, my URL will be https://www.mydomain.com/hello.php. If I call an EWB web application, my URL will be https://www.mydomain.com:444/myapp.html Is there a way to avoid including the port number for my web application as some users may get thrown off by it and most will probably forget about it? -- Frederick |
Sun, Nov 11 2018 1:11 PM | Permanent Link |
Uli Becker | Frederick,
> Is there a way to avoid including the port number for my web application as some users may get thrown off by it and most will probably forget about it? I don't think so. Uli |
Mon, Nov 12 2018 4:10 AM | Permanent Link |
Matthew Jones | Uli Becker wrote:
> You need to use different ports, your config-file of sTunnel should like like this: Can stunnel not redirect according to the path too? That's the ideal, and is supported by the open source Delphi ICS reverse proxy. So you can have myserver.com/api/* go to port 1234 (EWB application) myserver.com/* go to port 88 (normal web server) This makes the browser all happy because it is going to the same server, but the server is what determines what goes where. If anyone is interested, I'll document it further. -- Matthew Jones |
Mon, Nov 12 2018 5:46 AM | Permanent Link |
Uli Becker | Matthew,
> Can stunnel not redirect according to the path too? That's the ideal, and is supported by the open source Delphi ICS reverse proxy. So you can have > > myserver.com/api/* go to port 1234 (EWB application) > myserver.com/* go to port 88 (normal web server) That's new to me. Are you sure that stunnel accepts URL's in addition to IP's and/or ports? Uli |
Mon, Nov 12 2018 7:56 AM | Permanent Link |
Matthew Jones | Uli Becker wrote:
> Matthew, > > > Can stunnel not redirect according to the path too? That's the ideal, and is supported by the open source Delphi ICS reverse proxy. So you can have > > > > myserver.com/api/* go to port 1234 (EWB application) > > myserver.com/* go to port 88 (normal web server) > > That's new to me. Are you sure that stunnel accepts URL's in addition to IP's and/or ports? That's why I asked! I know that the ICS reverse proxy can do it (as can the common one's like nginx). So what I'm saying is that if the basic thing doesn't do what you need, find a better one. http://wiki.overbyte.eu/wiki/index.php/ICS_Download - a customer of mine paid for the reverse proxy to be done so that we could get into the flow of connections. -- Matthew Jones |
Mon, Nov 12 2018 9:05 AM | Permanent Link |
Frederick Chin | "Matthew Jones" wrote:
/* myserver.com/api/* go to port 1234 (EWB application) myserver.com/* go to port 88 (normal web server) This makes the browser all happy because it is going to the same server, but the server is what determines what goes where. If anyone is interested, I'll document it further. */ I would be interested. Thanks. -- Frederick |
This web page was last updated on Friday, December 6, 2024 at 01:43 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |