Mohammedz.com

For Linux and Shell scripting.


Leave a comment

Apache: how to disable directory listing

Disable directory listing using httpd.conf:
* Open your httpd.conf and look for “Options Indexes”
* Change “Indexes” to “-Indexes” if it exists.
* Or else add “Options -Indexes” as a new line
* Restart your apache webserver

Disable directory listing using .htaccess:-
* Open your .htacces file and look for “Options Indexes”
* Change “Indexes” to “-Indexes” if it exists.
* Or else add “Options -Indexes” as a new line

Regards,
Mohammed.


Leave a comment

How to Change the Web Server Engine Used by Plesk for Windows

You can switch the web server engine used by Plesk with Plesk Reconfigurator. You can choose either Apache and Internet Information Server (IIS).

NOTE: Changing web server engines can have drastic effects on the performance and stability of your Plesk server. Switch to another web server engine only if you are sure what you are doing.

To switch Plesk to the Apache web server engine:

Run the following command in the %plesk_dir%\admin\bin\ folder (where %plesk_dir% is the system variable defining the folder where Plesk is installed):

reconfigurator.exe –switch-plesk-web-server –new-provider=apache

To switch Plesk to IIS web server engine:

Run the following command in the %plesk_dir%\admin\bin\ folder (where %plesk_dir% is the system variable defining the folder where Plesk is installed):

reconfigurator.exe –switch-plesk-web-server –new-provider=iis