?
Solved

.cgi extension or not

Posted on 2003-02-24
4
Medium Priority
?
217 Views
Last Modified: 2013-12-25
I need a script to run without the.cgi extension as other
websites point to this script.

Can I ask if it is at all possible to tweak the apache config to excecute all cgi-bin content (ie. whether is has a .cgi extension or not).

Is this possible?
0
Comment
Question by:zip123
[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
  • 3
4 Comments
 

Expert Comment

by:Aheib
ID: 8010321
Hi Zip123

By default, apache will assume that every file in your cgi-dir is a CGI program, and will attempt to execute it. Even if the extension is left out. So I guess there's no extra tweaking required.

Also because of this, it makes no difference if your script has a .cgi extension or not, when other websites point to your script. It will work any way.

For more info, you can also check your apache documentation, where things are documented pretty clear:
http://localhost/manual/howto/cgi.html
(assuming you're running a version of apache on your own box)
0
 

Expert Comment

by:Aheib
ID: 8010336
extra:
http://httpd.apache.org/docs/howto/cgi.html#scriptalias
that's the link to the particular part on executing cgi files
0
 

Author Comment

by:zip123
ID: 8010462
Thanks for that but:-

Without the extension the file it just showing the text of the script!
0
 

Accepted Solution

by:
Aheib earned 225 total points
ID: 8010564
hmm.. in that case your host did change the config of apache. It shouldn't be too difficult for them to change it so all the files are being executed.
But please do tell, why do you want to drop the .cgi extension? If it's because other websites link to the script, then you might as well keep it, since that shouldn't matter at all.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

801 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