View previous topic :: View next topic |
Author |
Message |
gsownsby -
Joined: 03 Jun 2003 Posts: 71 Location: Chattanooga, TN USA
|
Posted: Thu Sep 04, 2003 4:11 pm Post subject: Using Index.cgi as Home Page |
|
|
I am using the Linux Version of Abyss running on RedHat 8.0 with all current patches installed.
I am using a PERL-based web portal program (Web-App) that uses index.cgi as the "home page" of the website. I have other PERL-based scripts successfully executing under Abyss and and Web-App (index.cgi) does too as long as it is executed from within its directory: htdocs/apps/webapp/cgi-bin (where index.cgi is located).
The Abyss configuration has been adjusted to permit index.cgi to be an index page and I have also set up the cgi paths to point to apps/webapp/cgi-bin. When doing so the script displays rather than executes. Permissions remain set on the index.cgi script to 755
Any thoughts on why it displays rather than executes? I've checked all the obvious things as described above? I hope I've described this clearly enough. Thanks. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Sep 05, 2003 12:52 pm Post subject: Re: Using Index.cgi as Home Page |
|
|
gsownsby,
We assume that when you browse http://yoursite/path/ you get the listing of index.cgi. Do you get the same thing when browsing http://yoursite/path/index.cgi ? If the script is executed with the second URL then it seems that you're using an old version of Abyss Web Server and we recommend to upgrade (there was a bug that leads to such a behavior with the old versions). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
gsownsby -
Joined: 03 Jun 2003 Posts: 71 Location: Chattanooga, TN USA
|
Posted: Fri Sep 05, 2003 7:32 pm Post subject: |
|
|
Thanks for the reply.
Let me make sure I've clearly explained what the "mission" is. Instead of loading the normal index.html Home Page, I want to go directly to a cgi script that will automatically generate a Home Page on-the-fly. If I can't do this somehow with Abyss, I'll have to use a redirect page on my website which is how I'm temporarily doing it today. See http://www.smokymountainsvisitorcenter.com. This hits a traditional index.html home page which initiates an immediate redirect to the script in the cgi-bin directory.
http://myurl.com/apps/webapp/cgi-bin/index.cgi successfully executes the Web-App Web Portal Script (as desired).
http://myurl.com/ results in the script being displayed in the browser window rather than executing. This occurs after the document path has been set up as htdocs/apps/webapp/cgi-bin
Hope this makes sense. :wink: Thanks. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Sep 06, 2003 1:25 pm Post subject: |
|
|
We assume that the document path has been set up as htdocs/apps/webapp/cgi-bin .
You should add index.cgi in the Index Files table (in Server Parameters in the console). htdocs/apps/webapp/cgi-bin shouldn't contain index.html or index.htm as these are configured to be the index files by default.
Now, with this setting, do the server execute correctly your index.cgi file when browsing http://myurl.com/index.cgi ? Does it display the source code of index.cgi when browsing http://myurl.com/ ?
If the answer is yes to both questions, you are using an old version of Abyss Web Server and all you have to need is to upgrade to the latest one as it fixes the bug you describe (the latest one is 1.1.6).
We're waiting for your feedback. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|