Solved

How to make a dynamic "path to Perl" with mod_rewrite in Apache?

Posted on 2004-10-19
5
276 Views
Last Modified: 2010-03-04
Hello,

I have follow problem:
I work with a Apache server offline. When I create a new Perl project then I have to point in the Perl script to Perl.exe
for example "#!c:\xampp\perl\bin\perl.exe"
Later when I want upload the Perl project then I have to change in all scripts the path to perl, for example "#!/usr/bin/perl"

This process is very tiresome. I want change the path to Perl with the Apache Modul mod_rewrite dynamically.
The rewrite modul should change automatically all path to perl into "#!c:\xampp\perl\bin\perl.exe"
I would be very grateful, when some guy could help me!!

Thank you in advance!
Mike
0
Comment
Question by:idiwa
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
mrielf earned 500 total points
Comment Utility
It is impossible to do with mod_rewrite, because perl is interpreted outside from apache.

But I think you don't need this, because as I know the windows don't uses perl script's first line to identify the interpreter (but possibly I know wrong this (I have no experience with web server and perl on windows), however to run perl from windows (not from webserver) nedded only file association)

0
 
LVL 5

Expert Comment

by:mrielf
Comment Utility
What asker want, is impossible. But it's writen in my answer...
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now