Question
Hey all,
Sorry for asking this question, but I've been sort of dumped into this thanks to an local admin who's less than helpful. Just a link to proper information would help - I've searched the docs but couldn't find exactly what I was looking for.
Simply, I've made a small group of CGI files, interfacing with a mysql db on the server. Right now they're located in a cgiwrap folder where I've been doing development. We need them to be within (and behind the security of) TWiki.
My question is, what's a simple way to put my custom CGI behind TWiki?
Any advice would be appreciated.
--Pou Hong
Environment
--
PouHong - 04 Oct 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
the 'best' way, would be to re-write the scripts to be
TWikiPlugins - registerTagHandler or restHandler style.
Failing that, you can just add twiki auto to those scripts - if you're using apache auth, via a .htaccess file - and if you're using template auth, by adding some more code to your cgi's
I suspect re-reiting as a twiki plugin will be the easiest tho
--
SvenDowideit - 04 Oct 2008
Dear Sir,
Your second option - the harder one you say, although I have already mostly finished the CGI scripts - what is twiki auto?
I have looked at the .htaccess file in the directory I'm using, modifying it based on what I see elsewhere in twiki's directory hierarchy, and I've tried moving things around and looking at twiki's login source, but to no avail so far.
Any further advice would be appreciated.
--
PouHong - 05 Oct 2008
sorry, spelling mistake - i meant twiki auth - but its harder, because you will need to spend some time working out how to integrate things together.
--
SvenDowideit - 06 Oct 2008
Closing this question after more than 30 days of inactivity. Feel free to re-open if needed.
--
PeterThoeny - 10 Dec 2008