• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

What File does plesk create to control my httpd.conf?

B

bperrotta

Guest
What File does plesk create to control my httpd.conf?
Need to find the Index in that file in order
to make Index.html load before index2.php.


Any Help appreciated,

Bill
 
You should be able to edit the DirectoryIndex in the httpd.conf to change this order. Alternatively you might be able to use an .htaccess file or create a vhost.conf file in the /conf directory of the site.
 
I realize what you are saying but it isn't working.

The original http.conf looks like

DirectoryIndex at_domains_index.html index.html index.html.var index.shtml index.
.cfm index.php index.htm

I tried both


DirectoryIndex at_domains_index.html index.html index.html.var index.shtml index.
.cfm index.htm index.php


DirectoryIndex index.html at_domains_index.html index.html.var index.shtml index.
.cfm index.php index.htm

Neither one makes the index.html file open instead of the index2.php file.
Am I missing somrthing here? help appreciated.

or how do I usde a .htaccess or vhost.conf to get this effect?
 
Did you restart apache after making the changes? If that still doesn't work, did you try the .htaccess file or create a vhost.conf with the DirectoryIndex directive in the /conf directory.
 
You would create it in the httpdocs directory with something like this:

DirectoryIndex Index.html index2.php

If that doesn't work try creating the /conf/vhost.conf file with this in it:

<Directory /var/www/vhosts/domain.com/httpdocs>
DirectoryIndex Index.html index2.php
</Directory>

Then run:

/usr/local/psa/admin/websrvmng -a -v
 
Back
Top