Default Apache Page - Fedora Core

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post February 15th, 2007, 11:26 pm

Okay so awhile ago I set up my linux box with fedora core. I install apache and PHP. Now when I go do my address I get a fedora care page that says I need to add a file to my var/www/html I did that and it still shows the page. Any idea?

Here is what it says.


Quote:
You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.


I commented out the lines in welcome.conf and all that did was make it so apache wouldnt start.
#define NULL (::rand() % 2)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 15th, 2007, 11:26 pm

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post February 16th, 2007, 3:56 pm

just delete their content. i dont remember where its located, but its the stuff that you didn't create. lol usually it'll have some apache images and then index.### with a couple different ext's
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • MolbO
  • Born
  • Born
  • No Avatar
  • Joined: Feb 18, 2007
  • Posts: 1
  • Status: Offline

Post February 18th, 2007, 10:32 am

did you have index.html?
and is this readable by apache(rigth group, permission)?
and have it rigth place ?
  • vijayan
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Jul 31, 2006
  • Posts: 52
  • Loc: india
  • Status: Offline

Post February 18th, 2007, 11:38 pm

Hi,

if u have your own page in /var/www/html.
If u want own web page not test page then you want to do edit file in /etc/http/conf.d/welcome.conf in this file content is this as below:
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>


just this 4 line comment and restart http service thne go to browser type your linux ip.
Now you can see web page.

Vijayan
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post February 20th, 2007, 6:32 pm

The page is in /var/www/html its a index.html page and I have tried to edit the welcome.conf file but when I do and I restart apache it fails and wont start. I looked at the permissions. Im not sure what to set it to though.
#define NULL (::rand() % 2)
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post February 20th, 2007, 7:00 pm

did you delete their content?

usually doing so makes it default to whatever items you've placed in the /var/www/html folder. permissions shouldn't be an issue.
you'd probably want to look in /etc/httpd/conf/httpd.conf instead, especially for setting things like allowing the server to default to index.php if one exists, etc.
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post February 20th, 2007, 10:13 pm

Sometimes I dont understand linux, well most of the time, anyways for some reason this time the server started up when I commented the welcome.conf file. So now when I go to my page it gives me a forbidden 403. I would think this is because of the permissions. I know what permissions I have to give to files using chmod but on the OS its self I have no idea.

Could this be a setting in the httpd.conf? Ive looked through it and havnt found anything that stands out.
#define NULL (::rand() % 2)
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post February 20th, 2007, 10:24 pm

yea..
it sounds like its regular people's http requests.
are you trying to access it locally or from the internet?
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post February 20th, 2007, 10:53 pm

Locally and from the internet through DynDNS
#define NULL (::rand() % 2)

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 95 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.