Solved

Apache Server: Default File

Posted on 2000-03-21
3
264 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

615 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