Apache Configuration for proxy to Active4D
I recently decided to part with Webstar and make the move to Apache on Windows. I was anticipating a large learning curve because I knew that I had been spoiled with Webstar's GUI and I also knew that Apache was configured by textfile settings with thousands of possible commands. After doing a vanilla install and reviewing the documentation, I learned that the basic needs were to tell Apache where the files were, what the domain name was and change the default page to index.a4d. This is a fusebox site. I also had to find the way to make virtual hosts and setup rewrite rules to proxy the .a4d pages to my 4D server. Following Aparajita's example from the Webstar Proxy rules he graciously provided, I managed to get two virtual domains created with rewrite rules for each. I've uploaded the 2 files I needed to change, httpd.conf and httpd-vhosts.conf.
httpd.conf
httpd-vhosts.conf
The main configuration file, httpd.conf, needed changes to the following tags:
*ServerRoot
*LoadModule proxy_module modules/mod_proxy.so
*LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
*LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
*LoadModule proxy_connect_module modules/mod_proxy_connect.so
*LoadModule proxy_http_module modules/mod_proxy_http.so
*LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
I loaded all the proxy modules though I suspect I only needed to load 1 or 2. I just removed the # (comment) from the first character of the line.
*ServerAdmin
*ServerName
*DocumentRoot
The changes to httpd-vhosts.conf are pretty self explanatory.
Comments (0)
You don't have permission to comment on this page.