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?
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).
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.
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.