It's becoming harder and harder to depend on the
"Monkey" for reference. Fortunately, David Adams had
posted some instructions recently, and I found it via
my Google mail archive. Here they are

- m|a

----

Subject: Re: Privilege for Port 80 for webserver
From: "David Adams" <[EMAIL PROTECTED]>
Date: Tue, 8 Nov 2005 07:57:54 +1100

OS X won't let a program run on a low numbered port,
such as 80,
unless you're root. The 4D feature set and manuals
encourage you to run 4D, or at least the Web server,
as root. That's nearly the last thing I'd want to do.
Instead, add a rule to the built-in OS X firewall
ipfw. (Thanks to Basil for first bringing this up on
the list.) Here's a sample of a rule that forwards all
incoming traffic

addressed to port 80 to port 8080 instead:

fwd 127.0.0.1,8080 tcp from any to any dst-port 80 in

Ugh. Unless you like writing things like that in
Terminal, use one of the following free tools:

Simple Port Forwarder
http://www.4dresources.com/files/
179k .dmg file
Thanks to Jeremy Sullivan!
This program lets you review, add, modify, and delete
ipfw rules and save these changes. Ideal if you're
administering the machine.

EVX_IPFW
http://www.exenevex.com/us/evxipfw.php
46k .sit file
Thanks to Stphane Pinel!
This plug-in lets you set ipfw rules on the fly from
within your 4D database (6.8 or later). This is great
if you are not administering the machine. Instead of
having to teach someone to set ipfw rules, you can
have your code make the necessary changes.

I'm sure there are situations where either/both of
these tools won't meet someone's needs. Then again,
it's hard to imagine that such a situation makes it
better to enable root and run the Web server (!) as
root. I'd _much_ rather teach an end user to use
Simple Port Forwarder than convince them to enable
root. No way.


---------------------------------------------
David Adams
[EMAIL PROTECTED]
Bermagui 2546 NSW
---------------------------------------------


sincerely,
m|a


                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to