You are here: Re: index.php « PHP Programming Language « IT news, forums, messages
Re: index.php

Posted by Anonymous on 07/27/06 12:57

Jerome wrote:
>
> How can I get a server to show index.php as it would index.html? When I
> save index.php it just shows the directory, I'm administrator of an
> Apache Server and I'm not of a (I think, it's what www.awardspace.com
> uses) a goDaddy server. Can anyone help me with this? Can it be done?

That's easy. Find your Apache config directory, edit the file httpd.conf
and look for DirectoryIndex. It will look like this:

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

Just change the last line to:

DirectoryIndex index.html index.php index.html.var

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация