Solved

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

Posted on 2004-10-19
5
277 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
ID: 12402871
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
ID: 12594232
What asker want, is impossible. But it's writen in my answer...
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RewrteRule using htacess 10 60
Clearing cache in word press. 3 49
Updating PHP in Windows Server 2012 r2 22 98
.htaccess file settings 4 54
In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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 …
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

943 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