Help needed on using python script from Apache Rewrite configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


I have Server version: Apache/2.2.31 (Unix) and trying to pass few arguments from Apache rewrite conf file to Python (version 2.6) script.

Also, I want to process the python output in rewrite configuration file.


Please let me know, how can I pass variables to python script and retrieve the output in rewrite configuration file.
I have loaded mod_python-3.3.1-16.el6.x86_64 and updated the httpd.conf file with proper path.

I have tried below steps just to verify, but no luck :
==========================
RewriteEngine On

RewriteMap d2u "prg:/opt/httpd/custom.d/python_test.py"
RewriteRule .? - [E=vrg:abcd-xyz]​
RewriteRule "-" "${path:%{vrg}e}"
===========================

​Regards,
D Pal



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux