Solved

Apache Server: Default File

Posted on 2000-03-21
3
254 Views
Last Modified: 2010-04-20
I installed Apache server and it is working.  I just wanted to change the default file from index.html.en to something else but I can not find it.  I looked at /www/conf/httpd.conf and it does not point to a file just to the directory which is /www/htdocs.  I also looked at the srm.conf and it just has comments.  What do I need to do?
0
Comment
Question by:wchance
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
dserna earned 25 total points
ID: 2641695
There is a directive called DirectoryIndex inside of the httpd.conf which you can change. The default value is index.html. So, just edit your httpd.conf and look for a line that says:

DirectoryIndex index.html

Change the index.html to what you want, save your changes and restart apache.

That should do it.

Hope that helps.
0
 

Author Comment

by:wchance
ID: 2641795
I have a question, when I look in the directory they are a few files that say index.html.en, index.html.es, index.html.xx how does it know to go to index.html.en?
0
 
LVL 1

Expert Comment

by:dserna
ID: 2642073
It knows to go use index.html.en because of the directive in the httpd.conf that I mentioned above. Most likely the DirectoryIndex directive is set to index.html.en

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

11 Experts available now in Live!

Get 1:1 Help Now