When you are a Zend Server CE user and regularly have to browse directories from within your browser you probably noticed an unusable and ugly interface. Directories and files are not easily distinguished. This behavior is caused by Zend Server CE default of not including the httpd-autoindex.conf file. Well actually the file is not included by the Apache 2.2 configuration. The httpd-autoindex.conf file sets up Apache to use icons and tables for directory listings.
When left default the directory listing looks as following:
To enable the fancy directory listing, as it is being called by Apache, you will have to alter the httpd.conf file of the Zend Server CE’s Apache 2.2 setup. For this example I will assume that your Zend Server CE setup will be in C:\Zend\. Change this location to your own needs. Default Zend will try to install in C:\Program Files\Zend.
The httpd.conf file is located in C:\Zend\Apache2\conf\. Open the file in your favorite plain-text editor (notepad.exe or notepad++.exe for example) and goto line 407 and 408. Here you will find the following content:
1 2 |
# Fancy directory listings #Include conf/extra/httpd-autoindex.conf |
Now remove the # in front of line 408 so it will look like this:
1 2 |
# Fancy directory listings Include conf/extra/httpd-autoindex.conf |
That’s all! The only thing left is to restart apache and you are done! This should be your result:
This post has been written with Zend Server CE 5.5 in mind. The settings made in this post should also work in older versions of Zend Server CE.