March 28, 2024, 09:34:00 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Apache configuration  (Read 3180 times)

Offline muayanup

  • New Member
  • Posts: 1
Apache configuration
« on: August 15, 2010, 06:38:39 PM »
 guys I am configuring apche on rhel5, I got default page successfully, and virtual page too, when i keep only one file index.html in virtual folder it goes well, that file opens correctly , but when I keep other html files except index.html server shows default page again, can anyone solve this problem?

Offline kaushalpatel1982

  • LST CareTaker
  • Linux Learner
  • *****
  • Posts: 87
Re: Apache configuration
« Reply #1 on: August 18, 2010, 08:57:25 AM »
1. Open httpd.conf file
2. Find "DirectoryIndex" in httpd.conf.
3. add yourhtmlfilename.html at the end of line
4. restart httpd service

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: Apache configuration
« Reply #2 on: October 02, 2010, 03:09:03 AM »
You need to look at the /etc/httpd/conf.d directory. If you want to disable the annoying default Index.html. Also I hope you have defined your document root correctly. :)