Solved

Apache Server: Default File

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 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

26 Experts available now in Live!

Get 1:1 Help Now