It's not a secret anymore!*
The moose likes Perl and the fly likes Using variables available in Perl scripts in httpd.conf file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Languages » Perl
Bookmark "Using variables available in Perl scripts in httpd.conf file" Watch "Using variables available in Perl scripts in httpd.conf file" New topic
Author

Using variables available in Perl scripts in httpd.conf file

Madangopal Venkatesan
Greenhorn

Joined: Jun 19, 2011
Posts: 16
Hi,

I have a use-case that I need to use the variables available in Perl in my httpd.conf file.

First, I call the Perl scripts, I set the variables. Then in the httpd.conf file, I call the variable to set request headers.


The use-case is: I need to encrypt the value of a request header which I intend to do in perl and then using RequestHeader in httpd.conf, I set the value that I get from Perl.



PLEASE HELP!!!
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10925
    
  12

Please help with WHAT? You didn't actually ask a question anywhere.

Do you have perl installed?
Do you know how to run perl?
Do you know how to write a perl program?

Without you telling us what exactly the problems is, what you have tried, what happened, and what you expected to happen, about the only help you can expect is "Start here".


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Madangopal Venkatesan
Greenhorn

Joined: Jun 19, 2011
Posts: 16
The question is, i want to modify request headers and set its value to a value returned from a perl script in httpd.conf. how do i do that?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using variables available in Perl scripts in httpd.conf file
 
Similar Threads
Setting Tomcat Envrionmental Variables for CGI Scripts
how to run a java app without typing "java "
existed code in perl and need to enhance in jsp
Using JAVA in PERL
Apache Config Issue