Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-10-19
5
Medium Priority
?
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
mrielf earned 2000 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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 …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

722 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