Solved

Apache question

Posted on 2015-02-15
1
66 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 82

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

747 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

9 Experts available now in Live!

Get 1:1 Help Now