Apache: Difference between revisions
Jump to navigation
Jump to search
(DirectoryIndex) |
No edit summary |
||
Line 1: | Line 1: | ||
== Enabling .htaccess files == |
|||
Check that you don't have an overall '''AllowOverride None'' in Apache's configuration file (<tt>/etc/apache2/httpd.conf</tt>) |
|||
== Tags == |
|||
=== DirectoryIndex === |
|||
* Use '''<tt>DirectoryIndex</tt>''' to change list of default name of index file while browsing directory |
* Use '''<tt>DirectoryIndex</tt>''' to change list of default name of index file while browsing directory |
||
<source lang="bash"> |
|||
DirectoryIndex index.php index.html # Will serve php version first |
|||
DirectoryIndex index.php index.html # Will serve php version first |
|||
DirectoryIndex mycustomindex.html # To point to specific file when browsing directory (no directory listing) |
|||
</source> |
Revision as of 16:30, 22 December 2010
Enabling .htaccess files
Check that you don't have an overall 'AllowOverride None in Apache's configuration file (/etc/apache2/httpd.conf)
Tags
DirectoryIndex
- Use DirectoryIndex to change list of default name of index file while browsing directory
DirectoryIndex index.php index.html # Will serve php version first
DirectoryIndex mycustomindex.html # To point to specific file when browsing directory (no directory listing)