If you encountered â€Directory Listing Denied – This Virtual Directory does not allow contents to be listed†error message on Windows Hosting, it is probably because you use index.php as your main file.
By default, HSphere does not include index.php as directory index or main file on Windows Hosting. That means, if you want to use index.php as your main file, you will need to modify your directory index setting in you hosting control panel and put index.php as your directory index.
Read below article for detail info:
Directory Indexes
This tool allows you to set your own index pages instead of those specified in the default settings. In other words, you can tell your visitors’ browsers which page to load as they hit your domain. Usually, it’s /index.html by default, but you can set any other custom welcome page.
Example: If a visitor goes to your site http://www.example.com, the first page to open will be http://www.example.com/index.html. However, if you set /welcome.html as the directory index, the page to open will be http://www.example.com/welcome.html.
Warning: your custom index pages won’t add to the defaults; they will replace them. Therefore, make sure to enter the full list of indexes you would like to have in your configuration.
To set your custom directory indexes, do the following:
- Select Quick Access in the Account menu.
- Click the Web Options icon on the page that shows.
- Click the Edit icon next to the domain you need.
- On the Web Service page, scroll down to find the Directory Indexes option and turn it on.
- Agree with the charges.
- In the box that appears, enter the names for files that will be treated as indexes. Put file names in the descending order of priority and separate them with spaces (e.g. index.html cgi.bin about.html).

- Skip this step if you are using a Windows-based plan. At the top of the Web Service page, click the Apply link for the Server configuration to change. The changes will take effect within 15 minutes.
- To edit the list you have made, click the Edit icon next to the Directory Indexes option: with spaces (e.g. index.html cgi.bin about.html).

If you are using a Unix-based plan, click the Apply link at the top of the Web Service page.

A simple solution which took ages to find out. Thank you so much.
much appreciated.
Goodman