Solved

Apache question

Posted on 2015-02-15
1
67 Views
Last Modified: 2015-02-28
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
Comment
Question by:linuxperson
1 Comment
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40611238
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now