Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 77
  • Last Modified:

Apache question

when i type the URL i am getting index.php page loaded.

I have to type http://ip-address/index.html to go to the main page every time

what i need to change in Apache configuration to get this working.

Currently i noticed my setting as follows

#DirectoryIndex index.html index.htm index.php
DirectoryIndex index.html
0
linuxperson
Asked:
linuxperson
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
That should use 'index.html' as the default page instead of 'index.php'.  Have you restarted Apache since you made that change?  Apache only reads the configuration once when it starts.  In general, I suggest you only have one 'index' page in a directory.  Use a different name for the other files.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now