Re: [cgiwrap-users] how to customize cgiwrap environment?
Brought to you by:
nneul
From: Adam O. S. <vo...@te...> - 2003-01-04 05:29:53
|
There are two ways to deal with this. I usually only use <cgiwrap> on other people's servers. On my own machines, I run <cgwarp> another open-source wrapper that I wrote myself who's special feature is a file in the HOME directory called ".cgi-env", which is a CGI equivalient of ".bash_profile". But I'm not suggesting you abandon <cgiwrap> for <cgwarp>. After all, <cgiwrap> has been tested and scrutinized by many people, and <cgwarp> has been tested and scrutinized by very few. So here comes suggestion #2: I could put together a script for you that emulates <cgwarp> from *within* <cgiwrap>. I would do this by adapting the scripts that I use *myself* on other people's servers where <cgiwrap> or <SuExec> is the User-ID setter. If your <cgiwrap> CGI-bin is at the following URL: http://yourhost.yourdomain/cgi-bin/cgiwrap/yourid Then the CGI-bin that emulates <cgwarp> would be: http://yourhost.yourdomain/cgi-bin/cgiwrap/yourid/exc Using this emulation script, you can have the best of both worlds: On one hand, your basis of user-ID setting is based on the more thoroughly tested <cgiwrap>: and on the other hand, you'd have an CGI-bin that recognizes an env-customization script (".cgi-env"). gk wrote: > I have just installed cgiwrap-3.7.1 on linux server. > I am trying to use it to run a script which requires a variable > XMLMAKE_HOME be set in the environment. > Apparently, cgiwrap does not read $HOME/.bash_profile > Is there any way to fix this, short of adding the environmental > variable to the root user's environment? > Thanks, > > - Greg Keraunen > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > cgiwrap-users mailing list > cgi...@li... > https://lists.sourceforge.net/lists/listinfo/cgiwrap-users > > |