1514 Corel WebServer: Corel WebServer and Apache
VERSIONS: Paradox 8 and later

SUBJECT: Using Corel webserver OCX and Apache

BY: DAN ALDER
Date: 22 November 2000

I did some looking; Apache will actually do this for you, I think. You need to add the proxy module, and set up proxy mappings:

LoadModule proxy_module modules/ApacheModuleProxy.dll
ProxyPass /pdx/ http://127.0.0.1:8000/
ProxyPassReverse /pdx/ http://127.0.0.1:8000/

This works fine on my machine - I can run the OCX on port 8000, and it gets requests passed from apache.

You'll then need to add SSL support to apache, which is a bit more complicated (I didn't actually try this part). Check out http://www.modssl.org and/or http://http://www.apache-ssl.org - these are two alternative SSL implementations for Apache.

Apache listens by default to port 80. The configuration is all done in the httpd.conf file; the directive for the port is "Listen 80", or "Listen 12345", or whatever.

Set the Paradox OCX to listen to another port (say 8000, as in my example). Set the LoadModule, ProxyPass, and ProxyPassReverse directives as below, and run (or restart) Apache.

In my example below, you'd then go to http://myserver.com/pdx/mypage.html, and apache would then in turn request http://127.0.0.1:8000/mypage.html. The OCX will fill the request, pass the page back to Apache, which then passes it back to the browser.

(As well, you'll want to make sure IIS and any other web servers on that machine are turned off, or at least not listening on port 80 and 8000. This has tripped me up a couple of times, since IIS is installed with NT server by default...)

It's nice, too, that you can mix environments here too. Apache comes in windows, linux, solaris, etc versions, as well as source code, so you can have a linux-based web server, and Paradox running on windows on another machine. All you need to do is change the ProxyPass directive to point to a different server instead of 127.0.0.1....

A little more research on the SSL front - Apache-SSL seems to be an Apache implementation that integrates SSL. There appears to be binary distributions for Linux and BSD, but on Windows, you'll need to compile it in yourself. Mod_SSL is an Apache module (add-on); this one's source only - again, you'll need to compile it yourself. Both appear to be free, but both seem to be subject to patent and/or security restrictions - check the licensing and legal stuff carefully.

There's also a commercial verision of Apache available called Stronghold from RedHat (http://www.redhat.com/mna/c2net.html - it's US$995), and an Apache module/add-on from Covalent Technologies called Raven SSL (http://www.covalent.net/products/ssl/ US$495).


VERSIONS: P8 and later

Subject: Apache SSL Installation (on Corel Linux OS) OCX

BY: Liz < leadlawATaros.net >
Date: 1 December 2000

Here are the instructions (written by my boss Thad Van Ry, with a few comments from me) on how to get a secure Apache SSL server up and running on Corel Linux OS and how to set up the proxy to another machine running the Corel Web Server OCX.


To enable SSL on Apache using Corel Linux OS.

In Corel Update:
In Options/Set Package Sources
Add a new Custom Path with the following settings:
URL: ftp://ftp.de.debian.org/debian
Version: stable
Category: remove everything except "main" (there will be four items in this list box by default)

After creating the Custom Path above:
On the Current Software Profile tab, expand the "base" category by clicking the + next to it.
Double-click on "ldso" until the arrows appear below Status
Click the upgrade icon in the toolbar.
Do the same for "libc6"

(See end of message for download locations of the following files.)
Then by using File/Install DEB File, install the following in this order:
libdb2_2.4.14-2.7.7.1.c.deb
apache-common_1.3.9-13.1.deb
libssl09_0.9.4-5.deb
openssl_0.9.4-5.deb
apache-ssl_1.3.9.13-2.deb

apache-doc_1.3.9-13.1.deb (optional)

To set up the proxy
You need to uncomment the following line in /etc/apache-ssl/httpd.conf
LoadModule proxy_module /usr/lib/appache/1.3/libproxy.so
And add the following two lines right below that line:
ProxyPass /pdx/ http://paradox.machine/
ProxyPassReverse /pdx/ http://paradox.machine/

(In place of /pdx/ you could put / which would send everything to the specified Paradox machine. (Note: http://paradox.machine/ represents the URL to your Paradox computer.) You could also put anything else in place of 'pdx' in /pdx/ and any URL with that 'path' immediately following the hostname of your Apache server will go to the Paradox machine.)
immediately following the hostname of your Apache server will go to the Paradox machine.)

Reboot the CLOS machine and your SSL should work. Please note that when you do the above steps, https://yourmachine/ will work. However, it will make the unsecure site, http://yourmachine/ quit working. See the FAQ at http://www.apache-ssl.org/ for more information. Pay particular attention to the question: "I want to run secure and non-secure servers on the same machine. Is that possible?"

File download locations:
libdb2_2.4.14-2.7.7.1.c.deb
http://packages.debian.org/stable/libs/libdb2.html
apache-common_1.3.9-13.1.deb
http://packages.debian.org/stable/web/apache-common.html
libssl09_0.9.4-5.deb
http://packages.debian.org/stable/non-us/libssl09.html
openssl_0.9.4-5.deb
http://packages.debian.org/stable/non-us/openssl.html
apache-ssl_1.3.9.13-2.deb
http://packages.debian.org/stable/non-us/apache-ssl.html
apache-doc_1.3.9-13.1.deb (optional)
http://packages.debian.org/stable/doc/apache-doc.html

For those files with "non-us" in the URL, please read the following (from http://packages.debian.org/stable/libs/):
"Software restricted in the US.
Most of these packages can be used in the US, but they can't be exported (not even re-exported!). Some of these packages may not be used in the US due to software patents. You may need to check the regulations in your country before using this software."

To index