Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2004
    Posts
    1,005

    Plesk redirection issue

    Hello everyone,

    I wanted to know how the Plesk based servers are configure dto handling http and php index files?

    For example which one of index files they are looking first html or php and where do i change these configurations?

    Best Regards,
    Namesniper
    Best Regards,
    Namesniper

  2. #2
    Im sure u can do this in the httpd.conf file just look for

    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    # The index.html.var file (a type-map) is used to deliver content-
    # negotiated documents. The MultiViews Option can be used for the
    # same purpose, but it is much slower.
    #
    #DirectoryIndex index.html index.html.var

    I am assuming...Just edit that, but i think plesk will reset it after reboot, u may want to ask on their forums... though..

  3. #3
    Join Date
    Mar 2004
    Posts
    1,005
    Will do..

    Originally posted by Criminal#58369
    Im sure u can do this in the httpd.conf file just look for

    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    # The index.html.var file (a type-map) is used to deliver content-
    # negotiated documents. The MultiViews Option can be used for the
    # same purpose, but it is much slower.
    #
    #DirectoryIndex index.html index.html.var

    I am assuming...Just edit that, but i think plesk will reset it after reboot, u may want to ask on their forums... though..
    Best Regards,
    Namesniper

  4. #4
    Join Date
    Oct 2004
    Location
    Southwest UK
    Posts
    1,159
    I forget the actual filename, but in Plesk, the plesk-set defaults are all stored in the httpd.conf file that each vhost domain has. At the end of that file is an entry that includes another file, you want to put your DirectoryIndex line in that.

    The idea is that plesk manages the entries in the file it writes, but you can add just your own changes to the included custom file.

  5. #5
    Join Date
    Mar 2004
    Posts
    1,005
    It should be in domain.com/donf/httpd.include but i didnt found anything about index there

    Originally posted by gbjbaanb
    I forget the actual filename, but in Plesk, the plesk-set defaults are all stored in the httpd.conf file that each vhost domain has. At the end of that file is an entry that includes another file, you want to put your DirectoryIndex line in that.

    The idea is that plesk manages the entries in the file it writes, but you can add just your own changes to the included custom file.
    Best Regards,
    Namesniper

  6. #6
    Join Date
    Oct 2004
    Location
    Southwest UK
    Posts
    1,159
    just create the httpd.include file and add the entry in, just like adding a redirect alias entry.

  7. #7
    Join Date
    Mar 2004
    Posts
    1,005
    Could you please post the exact instruction?

    Originally posted by gbjbaanb
    just create the httpd.include file and add the entry in, just like adding a redirect alias entry.
    Best Regards,
    Namesniper

  8. #8
    Join Date
    Oct 2004
    Location
    Southwest UK
    Posts
    1,159
    Hi.

    Have a look here: http://httpd.apache.org/docs-2.0/mod...directoryindex
    for the syntax.

    I was wrong about the httpd.include file - that's the file created and managed by Plesk. At the bottom on if though, you'll see 'Include /home/.../vhost.conf'.

    So, you want to create a vhost.conf file in the conf directory, with a line like:

    DirectoryIndex mynewindex.php mynewindex.html (etc...)

    in it. Apache will look at that directive for your site, and will look for files mynewindex.php first, the mynewindex.html second, the (etc...) third. Obviously you'll want to edit those filename entries.


    This file is usually used for ServerAlias entries (where you have a .com and a .net both resolve to the same website), but it can have any directives in it that apply to the VirtualHost section of apache's configuration.

Posting Permissions

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