LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2006, 10:17 AM   #1
Azhrarn
Member
 
Registered: Aug 2005
Location: Europe
Posts: 63

Rep: Reputation: 15
Basic Apache 2.0 question


Hi,
I ve set DocumentRoot & Directory so that a file
/usr/stuff/machines.htm

is loaded as default when I open up my apache server
http://proliant

How to I change it so that this page opens with
http://proliant/machines/ ?

please note, NOT http://proliant/machines.htm

I m running apache 2 on fedora core 4.

Thanks a lot
Azhrarn
 
Old 04-12-2006, 10:34 AM   #2
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
That's not really a good way to go. What I would suggest is that
1) make a subdirectory named "machines" in your website's root directory.
2) rename your machines.htm to index.htm and put it in "machines" directory.
3) Add this line below the line which has "DocumentRoot" In your /etc/apache/httpd.conf file.
Code:
DirectoryIndex index.htm
And whenever you will type http://proliant/machines/
it will open http://proliant/machines/index.htm automatically.
This will help you if you needed to add some more pages about machines.

Last edited by manishsingh4u; 04-12-2006 at 10:43 AM.
 
Old 04-12-2006, 10:41 AM   #3
Azhrarn
Member
 
Registered: Aug 2005
Location: Europe
Posts: 63

Original Poster
Rep: Reputation: 15
heya, unfortunately the file cannot be moved...
any other ideas?
Thanks a lot
Azh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Apache Configuring nickmoncrief Linux - Software 1 04-05-2005 01:38 AM
basic auth in apache CodeGeek Linux - Newbie 2 04-14-2004 09:27 AM
Basic Apache Setup Help KungFuHamster Linux - Networking 10 11-04-2003 12:45 PM
basic apache 2 questions barstowkid Linux - Networking 2 01-06-2003 08:09 PM
Apache 1.3 and basic auth luger Linux - Networking 4 05-17-2002 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration