Solved

Apache Server: Default File

Posted on 2000-03-21
3
261 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

820 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