Hmm... Fellow monk, I feel like a modem with a faulty parity bit setting, recognizing your words but failing to grasp what you are after.
Do you wan't to upload cgi scripts to the webserver and be able to move it around, using only the webbrowser? That sounds doable to me. Upload scripts are quite common, and I'm sure merlyn has several articles on how to create one. Combined with some sort of webbased filemanager you might have what you are after. Take care of security though. Such a system would give full access to the webserver, allowing the administrator to upload arbitrary code, which could be used to open up holes in your webserver.
Should I be totally off the target here, please describe your problem a little more in depth, giving examples and possibly code that you've already written, and we will surely be able to help you further. | [reply] |
I'm not quite sure what you're after but my own web site http://www.greentechnologist.org is an example of a "dynamic" cgi (actually mod_perl) web site. It's dirt simple. A single CGI sits at /wiki/wiki and I redirect the directory index for / to /wiki/wiki. Here's an (edited pathnames and mod_perl -> cgi) snippet from my apache conf. You might need to put this into a .htaccess file in an appropriate directory or something like it. Easy eh? The 404 page is actually just another wiki page so again - nothing unusual.
Redirect /index.html http://www.greentechnologist.org/wiki/wiki
ScriptAlias /wiki/ /var/www/usemod/bin/
ErrorDocument 404 http://www.greentechnologist.org/wiki/wiki?Error_404
| [reply] [d/l] |
If you have .htaccess or some other means of server control, you can set apache to run cgi scripts from ANY dir, including the root.. | [reply] |
There certainly are ways to make cgi-bin an alias for directories (do you really want to do that?) but that doesn't seem like the same thing as "import cgi scripts from html files". What do you mean specifically by "import cgi scripts from html files"? | [reply] |
way to import cgi scripts
from html files (not shtml)
Maybe what you want is an apache handler -
a program that will be executed using the target
file as data.
| [reply] [d/l] |