How to configure MAMP to serve perl CGI scripts (NOT localhost!)
I'm using MAMP-pro to serve my domain to the outside world.

I'm not a very experienced sys-admin, though I've slogged my way through a few basic things.  I know what apache is, and I can read-most-of but not generate-without-guide related .conf files.

I've got a perl script which I've tested from the command line and it works (outputs as desired.)

When I try to access said script from the browser, I get 404.

I've tried placing the script at:

* /Users/me/Sites/mydomain.com/htdocs/mycgi.pl
* /Users/me/Sites/mydomain.com/cgi-bin/mycgi.pl
* /Users/me/Sites/mydomain.com/htdocs/cgi-bin/mycgi.pl

and accessing it as:

* http://www.mydomain.com/mycgi.pl
* http://www.mydomain.com/cgi-bin/mycgi.pl

and all the various combinations, all to no avail (404.)

The script and its container directory have permissions 755.

So, what other steps am I missing?  Are there any good set-up guides?  I tried the MAMP-Pro manual, but it is filled with such information as "the cancel button cancels the current operation" and not really anything useful.  Google turned up several hits that all seem to talk about how to make this work on localhost, but I'm trying to serve this to the outside world.

Any hints?

Thanks!

How to configure MAMP to serve perl CGI scripts (NOT localhost!)
===

I'm using MAMP-pro to serve my domain to the outside world.

I'm not a very experienced sys-admin, though I've slogged my way through a few basic things.  I know what apache is, and I can read-most-of but not generate-without-guide related .conf files.

I've got a perl script which I've tested from the command line and it works (outputs as desired.)

When I try to access said script from the browser, I get 404.

I've tried placing the script at:

* /Users/me/Sites/mydomain.com/htdocs/mycgi.pl
* /Users/me/Sites/mydomain.com/cgi-bin/mycgi.pl
* /Users/me/Sites/mydomain.com/htdocs/cgi-bin/mycgi.pl

and accessing it as:

* http://www.mydomain.com/mycgi.pl
* http://www.mydomain.com/cgi-bin/mycgi.pl

and all the various combinations, all to no avail (404.)

The script and its container directory have permissions 755.

So, what other steps am I missing?  Are there any good set-up guides?  I tried the MAMP-Pro manual, but it is filled with such information as "the cancel button cancels the current operation" and not really anything useful.  Google turned up several hits that all seem to talk about how to make this work on localhost, but I'm trying to serve this to the outside world.

Any hints?

Thanks!
