Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1071391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:42:33+00:00 2026-05-16T20:42:33+00:00

My Perl app reveals the filename ‘processing.cgi’ in the addressbar when running on my

  • 0

My Perl app reveals the filename ‘processing.cgi’ in the addressbar when running on my hosting account, but on localhost it seems to work fine, that is, it doesn’t reveal the filename ‘processing.cgi’.

Here’s .htaccess thats exactly the same on both locations:

AddHandler cgi-script .cgi
Options +ExecCGI 

IndexIgnore *
DirectoryIndex processing.cgi

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ processing.cgi/$1

RewriteRule ^$ processing.cgi [L]
RewriteRule ^/$ processing.cgi [L]

This is the .htaccess in /public_html:

Options -Indexes 

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.main-domain\.com$ [NC]
RewriteRule ^(.*)$ http://main-domain\.com/$1 [R=301,L]

# BEGIN WordPress
# <IfModule mod_rewrite.c>
# RewriteEngine On
# RewriteBase /
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule . /index.php [L]
# </IfModule>

# END WordPress

What do I need to change?

Many thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:42:33+00:00Added an answer on May 16, 2026 at 8:42 pm

    With current setup, if you type http://example.com/ in your browser location bar there is no possible way you can see processing.cgi in such location bar unless your Perl script performs an HTTP redirection (by sending the Location header). So I suggest you double-check your Perl code.

    Whatever, I see what appear to be many directives scattered random around the file. I think it’ll be more productive if I explain what they mean:

    AddHandler cgi-script .cgi
    Options +ExecCGI 
    

    Enable CGI scripts and map the *.cgi extension so any file that ends with .cgi is considered a program.

    IndexIgnore *
    

    Instruct Apache to generate empty directory listings. When people do not want directory listings, they normally just disable them: Options -Indexes

    DirectoryIndex processing.cgi
    

    When the URL points to a directory, find and display a file called processing.cgi in such directory. Are you planning to maintain a copy of your Perl program on every directory of your site?

    RewriteEngine on
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    

    If the URL doesn’t map to an existing file or directory…

    RewriteRule ^(.*)$ processing.cgi/$1
    

    When user types http://example.com/foo/bar.jpg actually run http://example.com/processing.cgi/foo/bar.jpg. See if any other rules matches.

    RewriteRule ^$ processing.cgi [L]
    

    When user types http://example.com actually run http://example.com/processing.cgi. We’re done with rules.

    RewriteRule ^/$ processing.cgi [L]
    

    When user types http://example.com/ actually run http://example.com/processing.cgi. We’re done with rules.

    It’s clear now that you have a lot of redundant rules. Your exact needs are not 100% clear to me but I guess you can savely remove most of your directives:

    AddHandler cgi-script .cgi
    Options +ExecCGI
    
    Options -Indexes
    
    RewriteEngine on
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ processing.cgi/$1 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've moved a Perl CGI app from one web host to another. Everything's running
My Perl app and MySQL database now handle incoming UTF-8 data properly, but I
My Perl web-app, running under Apache mod_fastcgi, frequently gets errors like the following: Maximal
I've got a Perl based FastCGI app that rarely goes down. However, when it
Using Perl, how do I check if a particular Windows process is running or
I'm attempting to move a web app we have (written in Perl) from an
I'm running a service built entirely with Perl which is not supported by New
I'm writing my first Perl app -- an AOL Instant Messenger bot that talks
I want to maintain state in my Perl web app. How can I do
I'm developing a web app in Perl with some C as necessary for some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.