Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to make index.pl the default?

by TVSET (Chaplain)
on Apr 22, 2003 at 23:39 UTC ( [id://252403]=note: print w/replies, xml ) Need Help??


in reply to How to make index.pl the default?

That's easy :)

You have to configure your server to use index.pl or index.cgi (or whatever you want) as a default Index page. If you are using Apache web server, then you have to use DirectoryIndex directive. Here is a an example from my config (/etc/httpd/conf/httpd.conf):

# # DirectoryIndex: Name of the file or files to use as a pre-written HT +ML # directory index. Separate multiple entries with spaces. # <IfModule mod_dir.c> DirectoryIndex index.epl index.html index.htm ndex.shtml index.php + index.php4 index.php3 index.phtml index.cgi index.epl index.pl index +.mhtml index.mpl </IfModule>

It is possible in any(?) other server too. I've seen it even in MS IIS, but don't remember where. :)

Leonid Mamtchenkov

Replies are listed 'Best First'.
Re: Re: How to make index.pl the default?
by Bilbo (Pilgrim) on Apr 23, 2003 at 08:22 UTC

    If you are using Apache then this can also be placed in a file called .htaccess in your website directory, so you don't need to configure the server itself. Seach google for 'htaccess'.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://252403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2024-04-23 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found