Apache Display / Change a Default Page Other Than index.html




+ Reply to Thread
Results 1 to 6 of 6

Thread: Apache Display / Change a Default Page Other Than index.html

  1. #1
    Meer is offline Senior Member
    Join Date
    Sep 2010
    Posts
    179
    Feedback Score
    0

    Apache Display / Change a Default Page Other Than index.html



    How do I display or change a default page other than index.html or index.php under Apache web server?

    You need to use DirectoryIndex directive under Apache to set a default page other than index.html or index.php.
    The DirectoryIndex directive sets the list of resources or file to look for, when the client requests an index of the directory by specifying a / at the end of a directory name.
    Edit httpd.conf

    Open your Apache configuration file httpd.conf
    Code:
    # vi httpd.conf
    Find out line that read as follows:
    DirectoryIndex
    Now set it as per your requirements:
    DirectoryIndex index.html index.htm default.htm index.php index.pl
    Save and close the file. Restart the Apache web server:
    Code:
    # /etc/init.d/httpd restart
    Please note that if you do not have access to Apache configuration file. Add DirectoryIndex to your .htaccess file.
    You can also specify php or pl dynamic script. Also note that the documents do not need to be relative to the directory. Consider following example
    DirectoryIndex index.html index.pl /nav/index.php

  2. #2
    ogt69gt69 is offline Junior Member
    Join Date
    Jun 2011
    Posts
    3
    Feedback Score
    0
    Thanks! Looks great!

  3. #3
    known_stranger is offline Junior Member
    Join Date
    Apr 2011
    Posts
    1
    Feedback Score
    0
    Thanks bro

  4. #4
    kris55 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    2
    Feedback Score
    0
    Thanks buddy, great work

  5. #5
    robbie-bobbie is offline Junior Member
    Join Date
    Jul 2011
    Posts
    1
    Feedback Score
    0
    gr8 thanks

  6. #6
    tomtom1111 is offline Junior Member
    Join Date
    Sep 2011
    Posts
    2
    Feedback Score
    0
    thanks works great

+ Reply to Thread

Visitors found this page by searching for:

apache display html

edit default page apache

How can I show a default page other than index.html?

default page other then index

Change a Default Page Other Than index.html

apache indexes style

change default index page apache

apache display html file

apache default page displaying

change default page apache

html code default page apache

change apache default to point index.php

How can I show a default page other than index.php?

show html other than default page apache

apache display index instead of default

apache2 change default index

Default Page Check index.html

how can i show a default page other than index.html

post pages in apache index.html

change index.html to .pl

Change a index.html Other Than Default Page

show a default page other than index.html

display page other than index first

apache change default page displayed

change default page to other than index.html for apache2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts