Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Fedora Core 6


  • Please log in to reply
10 replies to this topic

#1 DHCP

DHCP

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Location:UK
  • Local time:06:25 PM

Posted 06 February 2007 - 05:37 PM

hello people i just installed fedora C6 on a computer and i have managed to get the web server up and running all i need to know is how to change the apache test page in to my main site page (index.html)i goto the dir /etc/httpd/conf/httpd.conf n it tells you to blank out the lines below but how do i do this im running this as a GUI not a terminal so any help would be apreactied chers
The One And Only!!!

BC AdBot (Login to Remove)

 


m

#2 Walkman

Walkman

  • Banned
  • 1,327 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:25 PM

Posted 06 February 2007 - 05:51 PM

All you need to do is replace the page with your index.html file. If you're using another extension, then you'll have to set it in the httpd.conf file.

Also note: If your index is index.html, as the default page is, you'll need to either rename it or delete it or the Apache won't see yours.

#3 DHCP

DHCP
  • Topic Starter

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Location:UK
  • Local time:06:25 PM

Posted 07 February 2007 - 05:16 PM

how do you mean i replace the page my index.html or the config one in /etc/httpd/conf/httpd.conf
The One And Only!!!

#4 Walkman

Walkman

  • Banned
  • 1,327 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:25 PM

Posted 07 February 2007 - 05:32 PM

To get you started, all you need to do is go to the root folder of your server, and look for a file called either:

default.asp
default.html
index.html
index.htm

... it's one of them.. but I think it's the 1st one or the second one. Whichever one of them you find...... delete them or just rename them, and then add your files to that folder/directory. Actually, you can delete all of the files in your root folder, because they are the Apache files that are defaulted for whatever language you're in.

As far as changing the file structure in the httpd.conf file....... we'll deal with that once you have completed the above part and verified that your index file is present, and not the Apache default page.

But, the Apache is setup to look for index files in a particular order, and it only loads the files in the order they were set in the httpd.conf.(example:... .asp, .htm, .php, .html,.... so it'll look for .asp 1st, then it would look for .htm, and so on until it finds an index or default file with any of those extensions)... and if Apache don't find them at all.... the default Apache page loads, which I think is default.asp.

[Edit]
I had to clarify the last section better.

Edited by Walkman, 08 February 2007 - 12:29 PM.


#5 DHCP

DHCP
  • Topic Starter

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Location:UK
  • Local time:06:25 PM

Posted 08 February 2007 - 04:26 PM

rite thanks for that i have kinda sorted it out it dont come up with the test page anymore it just comes up as a directory displaying my website as files not acutaly the site how do i do it so it comes up as my acutal webpage thanks
The One And Only!!!

#6 Walkman

Walkman

  • Banned
  • 1,327 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:25 PM

Posted 11 February 2007 - 11:51 PM

What is the extension of your index page? .htm, .html, .asp, .php, etc.,?

#7 DHCP

DHCP
  • Topic Starter

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Location:UK
  • Local time:06:25 PM

Posted 12 February 2007 - 01:02 PM

index.htm
The One And Only!!!

#8 Walkman

Walkman

  • Banned
  • 1,327 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:25 PM

Posted 12 February 2007 - 06:41 PM

Inside of the Main Configuration section of the httpd.conf file, you need to do a search for this:

#DirectoryIndex: sets the file that Apache will serve if a directory
#is requested.


After you find it, look below it, about 6 lines down, and you will see this:
DirectoryIndex index.html index.html.var index.php index.htm

You may not have the .php extension listed, but you can put it there if you're using .php. But the index.htm should already be there. If your site isn't loading, then chances are that you haven't put your index.htm file in that directory. Verify that you see your index.htm file listed in the site directory.

If index.htm isn't listed in your httpd.conf file, than all you need to do is just add it to the line for the DirectoryIndex

#9 DHCP

DHCP
  • Topic Starter

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Location:UK
  • Local time:06:25 PM

Posted 12 February 2007 - 07:27 PM

its not that my site isnt loading it jus dosent open the page fully and its displays it like this >>
Posted Image

how do i get it to open index.htm as soon as you type the IP rather then typing "127.0.0.1/index.htm"

and i checked that file and added index.htm didant make a diffrence but thanks anyway any help is greatful

Edited by DHCP, 12 February 2007 - 07:38 PM.

The One And Only!!!

#10 DHCP

DHCP
  • Topic Starter

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Location:UK
  • Local time:06:25 PM

Posted 12 February 2007 - 07:44 PM

dosent matter fixed it jus needed a restart thanks soo much for ur help "walkman" (it must of been that file)
chers agen
The One And Only!!!

#11 Walkman

Walkman

  • Banned
  • 1,327 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:25 PM

Posted 12 February 2007 - 07:55 PM

Glad to have helped.

I was going to tell you in my next post that you would either have to refresh your page or you would need to try http://localhost/, but, you beat me to it.


-close thread




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users