LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-07-2002, 09:35 AM   #1
burningodzilla
Member
 
Registered: Mar 2002
Location: St Aug FL
Distribution: (depends on the week - usually redhat or slackware)
Posts: 35

Rep: Reputation: 15
apache "advanced extranet server" forbids cgi!


i'm running mandrake 8.2 which includes the latest apache (1.3 advanced blah blah) - it's cool and has all the latest patches, but anytime i try to run a cgi i get a "Forbidden" error. yes the cgi-bin is world executable and yes the script is world executable (w/ chmod 777 permissions on the script).

i looked thru the apache cgi doc and it said that to enable cgi you must set all the appropriate permissions (which i did), and have a "ScriptAlias /<path-to-cgi-bin>/" directive in /etc/httpd/conf/httpd.conf file. I made that entry and tried to restart apache - and it said that it didnt understand "ScriptAlias".

I also checked the apache err logs and it suggested something like a EnableCGI directive, but that's not in the manual at all!

can somebody help me get cgi going? thanks!
 
Old 05-07-2002, 09:52 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Did it complain about the syntax of your command or that it can't recognize the ScriptAlias directive at all?

According to the documentation you should have the url then the directory.
http://httpd.apache.org/docs/mod/mod...ml#scriptalias
 
Old 05-07-2002, 10:08 AM   #3
burningodzilla
Member
 
Registered: Mar 2002
Location: St Aug FL
Distribution: (depends on the week - usually redhat or slackware)
Posts: 35

Original Poster
Rep: Reputation: 15
i believe it complained about the directive, but that still could've been from a syntax error. my syntax IS off; it is:

ScriptAlias /var/www/cgi-bin/

but that's wrong isn't it...? isn't it supposed to be ScriptAlias <request> <path to bin> ?

ps ->
does it matter WHERE in the file this line is located?

Last edited by burningodzilla; 05-07-2002 at 10:31 AM.
 
Old 05-08-2002, 03:14 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Yes your syntax is wrong. The link I gave you explains nicely how it should be done. And if you look at the context where the ScriptAlias can be placed it's in the serverconfig and virtualhost. So basically anywhere in the file httpd.conf should do fine. Unless you want it specifically for a certain virtualhost then you'll have to place it in the virtual host section.
 
Old 05-08-2002, 10:14 AM   #5
burningodzilla
Member
 
Registered: Mar 2002
Location: St Aug FL
Distribution: (depends on the week - usually redhat or slackware)
Posts: 35

Original Poster
Rep: Reputation: 15
i dont know man somethin's still whacked;

my cgi bin is located at /var/www/cgi-bin, and my scriptalias line is as follows:

ScriptAlias /cgi-bin/ /var/www/cgi-bin/

and it still complains about the directive!? any ideas...this sucks! thanks a lot for your help!

-burn
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make "localhost" point to a subdirectory of Apache server oudent Linux - Networking 2 07-21-2005 07:37 PM
My LAN can't "see" my DMZ server to chk my Apache website piratebiter Linux - Networking 3 05-08-2005 05:19 PM
Apache/Tomcat : jsp = "No Host matches server name" ghow961 Linux - Networking 0 07-01-2004 06:20 PM
Better buying "advanced linux prog" or "unix advanced prog" Dominik Programming 3 12-31-2003 01:11 PM
advanced extranet server? jon_k Linux - Software 0 07-31-2003 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration