Setting up server-cgi-bin folder

I’m in the process of setting up a test server to test my web app. This is a local server.

Can not get the cgi-bin folder to work. I get a error: 404 The requested URL /cgi-bin/eddieselectronics/eddieselectronics.cgi was not found on this server.

I copied a php program into the cgi-bin folder and get the same error.
However if I copy the cgi-bin folder and rename it “test” and adjust the url it work.

Is there something about the cgi-bin folder I’m missing?

May want to check your httpd.conf and see if cgi directory is setup/enabled. If you are using apache. Can’t speak about IIS (not familiar with it)

Thanks Bob.
I fail to mention that I am using a Mac Server, which uses Apache. Did check the httpd.conf file and it include the following code

# # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the target directory are treated as applications and # run by the server when requested rather than as documents sent to the # client. The same rules about trailing "/" apply to ScriptAlias # directives as to Alias. # ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1"

which I assume is what you are referring to.

I have also verified that I have both PHP and Python enabled. Have also redone the build for Mac are uploaded (my production site is Linux).

Where are you placing the cgi files in ?

From the above conf file its in “/Library/WebServer/CGI-Executables/”

Server/Web/Data/Default/cgi-bin

“cgi-bin” folder has the web app’s.

I haven’t hosted web apps on OS-X, only Linux. I am curious. I am going fire up my mac mini and see what’s involved. I do remember two cgi-bin locations being available, one for each user and one for the host.

I haven’t got it working yet. But I think the folder name is not “cgi-bin” but “CGI-Executables”.,

I’m not getting the “not found on this server” error but “500 Internal Server error”.

If I recall that what I got when I move my web site to hosted site. So that some progress.

Making some progress.
As stated the folder for cgi is:“CGI-Executables”
However the URL has “cgi-bin”

One of my web cgi app is get error: Application launched, but unable to connect using port 56933. Don’t know what to do about that, is set to “Choose Automatically”

For eddieselectronics it works somewhat, no Map. However it working in the debugger.

Any help would be appreciated.