LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-20-2005, 03:29 AM   #1
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Rep: Reputation: 30
Unhappy Apache 1.3 , SCRIPTALIAS problem!


i installed Apache 1.3.19 with PHP and Perl modules
i have a script /path1/path2/path3/script.cgi, i added a scriptalias directive in the configuration file as SCRIPTALIAS /path1/path2/path3/script.cgi /sc
so that when the /sc is requested, the server will redirect to the main script at /path1/path2/path3/script.cgi.
the problem is when /sc is requested, an error page is returned "Page cannot be displayed", although the script permission is set to exec for all!
thanks
 
Old 10-20-2005, 03:44 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
I think you reversed the arguments; it should probably be:
Code:
ScriptAlias /sc /path1/path2/path3/script.cgi
 
Old 10-20-2005, 06:35 AM   #3
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Original Poster
Rep: Reputation: 30
i'm sorry i didn't write it correctly it is written like that in the conf file
ScriptAlias /sc /path1/path2/path3/script.cgi
 
Old 10-20-2005, 06:39 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,221
Blog Entries: 1

Rep: Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075
If your script is located at /path1/path2/path3/script.cgi then it's:
Code:
ScriptAlias /sc/ "/path1/path2/path3/"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RedirectMatch & ScriptAlias richwalker Fedora 0 07-10-2005 06:12 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
ScriptAlias - cgi-bin oth88 Linux - Software 3 09-16-2002 09:58 AM

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

All times are GMT -5. The time now is 09:34 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