Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Linux Operating System > Web/Security
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-17-2005, 04:26 PM   #1 (permalink)
que
Member
 
Join Date: Aug 2005
Posts: 31
Default httpd.conf to allow .pl or .cgi scripts to run outside of cgi-bin

I need to allow a Perl script to run outside of my "cgi-bin" directory but I am not sure what edits I need to make in the httpd config file.

I am running Apache version 2.0.48.

Can someone provide some what edits I need to make? Thanks
que is offline   Reply With Quote
Sponsored Links
Old 10-17-2005, 09:18 PM   #2 (permalink)
allon
Senior Member
 
Join Date: Sep 2005
Posts: 104
Default

Can you cut and paste your httpd.conf?
But if its version 2 of appache, then there are some hing called Includes at around the bottom to vhost can we take a look at that?

Some systems like the Cobalts allow cgi to run anywhere on the site, conventional machines may not though.
allon is offline   Reply With Quote
Old 10-18-2005, 08:03 PM   #3 (permalink)
vvaldir
Junior Member
 
Join Date: Jul 2005
Posts: 18
Default

You may need to change the AddHandler line in your httpd.conf file to run perl scripts.

From:
#AddHandler cgi-script .cgi

To:
AddHandler cgi-script .cgi .pl

That may help solve the problem you have currently.
vvaldir is offline   Reply With Quote
Old 02-22-2006, 09:56 PM   #4 (permalink)
oulzac
Junior Member
 
Join Date: Feb 2006
Posts: 10
Default Re: httpd.conf to allow .pl or .cgi scripts to run outside of cgi-bin

Quote:
Originally Posted by vvaldir
You may need to change the AddHandler line in your httpd.conf file to run perl scripts.

From:
#AddHandler cgi-script .cgi

To:
AddHandler cgi-script .cgi .pl

That may help solve the problem you have currently.
That will only work if the server is set to run .cgi files outside the cgi-bin folder.

To set where cgi's can run, in the httpd.conf file you will see this line (per virtual host):
PHP Code:
ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin

you can change this to:
PHP Code:
ScriptsAlias / /home/username/public_html

This will allow and folder under the public_html folder to run a cgi script.

But remember, if its .pl file, this does not matter, a perl file will run outside the cgi-bin folder by defualt.
oulzac is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:42 AM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums