httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Montague <m...@catseye.org>
Subject Re: [users@httpd] Simple problem of index.php
Date Mon, 28 May 2012 16:51:08 GMT
On May 27, 2012 7:13 , Florent Blanchon <florent.blanchon@gmail.com> wrote:
> I'd like to know how to set index page to index.php because after 
> installing xoops, but even if my index.php is in root directory, the 
> server keep showing me the test page.

You may want to ask the xoops people what the standard way to do this is 
on a web server running xoops.  But, in general, if your go to 
http://example.com/ and see the contents of the file index.html that is 
in your DocumentRoot directory, but you instead want to see the content 
generated by index.php in the same directory, then use the 
DirectoryIndex directive to specify this:

https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex

For example, put the following inside the VirtualHost stanza for your 
web virtual host in Apache HTTP Server's configuration file (or inside 
the relevant Directory stanza or .htaccess file if you want it to apply 
to only a single directory):

DirectoryIndex index.php

I hope this helps.

--
   Mark Montague
   mark@catseye.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message