I'm finally getting around to tackling our WebSTAR to Apache conversion.
For those who are interested I'll answer the quoted question below. On
OS X _Server_ each "site" has its own .conf file. These are located in
/etc/httpd/sites/.
OK, so figuring that out got me started.
Based on some examples from this forum I'm trying to get Apache to proxy
request to 4D Client running on port 8080 on the same machine.
OS X Server 10.4.x
4D Client 2003.7
Active4D 3.0.1b7
ITK web server (serving both .a4d and .acgi) <= The .acgi serves
"netlink-style" legacy stuff.
Note that ITK is configured to only allow connections from localhost.
Therefore any requests will have to be proxied from the front-end web
server.
I can get the rewrite rules to work for the .acgi files, but am having
no luck with Active4D pages.
Here is what my rules look like:
<IfModule mod_rewrite.c>
RewriteEngine On
# ==================================================
# Log rewrite status
# !!! TURN THIS OFF WHEN NOT NEEDED
# --------------------------------------------------
RewriteLog /var/log/httpd/bcr/rewrite_log
RewriteLogLevel 9
# RewriteCond %{REQUEST_METHOD} ^TRACE
# RewriteRule .* - [F]
RewriteCond %{REQUEST_URI} ^/(acr\/.+\.a4d) [NC]
#RewriteCond %{HTTP_HOST} ^(.+)$
RewriteRule .*
http://localhost:8080/%1&host=bcr.twp-xserve-dev.lanl.gov [NC,R,L,P]
RewriteCond %{REQUEST_URI} ^/(oms\.acgi\$.*)$ [NC]
RewriteRule .* http://localhost:8080/%1 [NC,R,L,P]
</IfModule>
Here is an entry from the rewrite logfile:
(2) init rewrite engine with requested uri
/acr/index.a4d
(3) applying pattern '.*' to uri
'/acr/index.a4d'
(4) RewriteCond: input='/acr/index.a4d' pattern='^/(acr\/.+\.a4d)' =>
matched
(2) rewrite /acr/index.a4d ->
http://localhost:8080/acr/index.a4d&host=bcr.twp-xserve-dev.lanl.gov
(2) forcing proxy-throughput with
http://localhost:8080/acr/index.a4d&host=bcr.twp-xserve-dev.lanl.gov
(1) go-ahead with proxy request
proxy:http://localhost:8080/acr/index.a4d&host=bcr.twp-xserve-dev.lanl.gov
[OK]
This looks like it should be working ok, but the browser is returning a
"404 Not Found". The regex pattern seems to work ok. What puzzles me is
why ITK will serve the proxied acgi stuff, but not Active4D.
If I run a web browser on the server machine and access the URL
http://localhost:8080/acr/index.a4d&host=bcr.twp-xserve-dev.lanl.gov
then Active4D will return a page.
Any ideas?
I wrote:
I'm working on setting up a new web/web application server here. In
doing so I plan to begin using Apache instead of WebSTAR.
I've got some of the pieces figured out such as virtual host
configuration and based on previous posts on this list I have a good
start on the _syntax_ for the rewrite rules.
What I'm not clear on is this: The file space for an OS X _Server_
Apache install appears to be very different than for an OS X Apache
install. I've googled this subject to death and have found a lot of
rewrite hints for OS X, but not for OS X Server. Therefore the files
that are would be edited under OS X aren't necessarily the same as
under OS X Server.
What Apache file(s) need to be edited when setting up the Rewrite
rules on OS X Server 10.4.4?
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/