Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 CGI As Index
Google
Post new topic Reply to topic
Author Message
TylerC89
 
 


Joined: 16 Mar 2006
Posts: 5

PostPosted: Fri Mar 17, 2006 3:27 am Reply with quoteBack to top

I have a CGI script that has to run with nph- on it.

But, I want the script to act as the index of my site. How would I do this?
View user's profileSend private message
dawg
support
support


Joined: 11 Apr 2004
Posts: 180

PostPosted: Fri Mar 17, 2006 3:17 pm Reply with quoteBack to top

search for DirectoryIndexes in httpd.conf and Add:

Code:


index.pl index.cgi

View user's profileSend private message
cigraphics
 
 


Joined: 21 Aug 2005
Posts: 148
Location: Romania, Pitesti

PostPosted: Fri Mar 17, 2006 9:27 pm Reply with quoteBack to top

or in your VirtualHosts type DirectoryIndex index.pl index.cgi or with htaccess make a htaccess in your directory where the site is and make a New Text Document type in it DirectoryIndex index.pl index.cgi then save the document as .htaccess Wink success
View user's profileSend private messageSend e-mailYahoo Messenger
TylerC89
 
 


Joined: 16 Mar 2006
Posts: 5

PostPosted: Fri Mar 17, 2006 9:48 pm Reply with quoteBack to top

yeah but the script HAS to have nph- in front of the script. This allows it to run with special header functions.
View user's profileSend private message
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Sat Mar 18, 2006 2:16 pm Reply with quoteBack to top

just add nph-index.cgi to DirectoryIndexes then

and you can also use a redirect to your NonParseableHeader script, see FAQ #13
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT