data64 has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks I question on the recommended way of calling mod_perl scripts from an Server Side Include HTML page on Apache (1.3+) server.
My company's website has a number of Html pages created by our graphics designers. We are already using Server Side Includes to add in standard headers and footers. I am working on adding in capability to dynamically generate images that will be shown on some of these pages.
I am not too worried about writting the script itself, but I not very sure about to call the script from SSI tags.
With this it looks like I have to have the mod_perl script accessible externally for it work. ie. instead of the script being accessible only from SSI tags, Apache permissons have to be setup so that the script could be accessed directrly. I tried adding "deny from all" to the directory that holds the script but then the script could not be called even from SSI.
Does not allow me to pass any parameters to the script. I need to be able to pass some configuration parameters.
I only found hints about this option, I could not find much information about it. I Apparently need to set PERL_SSI to 1 while building mod_perl. Not sure if this is a good idea.
Being new to mod_perl developement, I would appreciate any insight into which is the recommended way and if there is a way around the issue with option 1.
Just a tongue-tied, twisted, earth-bound misfit. -- Pink Floyd
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling mod_perl script from SSI page
by cees (Curate) on Feb 10, 2003 at 02:09 UTC | |
|
Re: calling mod_perl script from SSI page
by data64 (Chaplain) on Feb 10, 2003 at 04:17 UTC | |
|
Re: calling mod_perl script from SSI page
by perrin (Chancellor) on Feb 10, 2003 at 15:34 UTC |