Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: mod_perl2 Apache VirtualHost ENV settings [OT?]

by perrin (Chancellor)
on Feb 06, 2008 at 19:27 UTC ( [id://666651]=note: print w/replies, xml ) Need Help??


in reply to mod_perl2 Apache VirtualHost ENV settings [OT?]

When you want to set up variables that are specific to a Location, Directory, or VirtualHost, use PerlSetVar.
  • Comment on Re: mod_perl2 Apache VirtualHost ENV settings [OT?]

Replies are listed 'Best First'.
Re^2: mod_perl2 Apache VirtualHost ENV settings [OT?]
by graq (Curate) on Feb 07, 2008 at 09:03 UTC
    This would mean doubling up on all the configs, setting SetENv for scripts and PerlSetVar for mod_perl ?

    -=( Graq )=-

      If you need to support CGI scripts that don't run under mod_perl, I would suggest you create a config file with a hash of the variables you need indexed by something like DocumentRoot that's available in $ENV for CGI scripts and accessible via the mod_perl API as well.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://666651]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-20 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found