LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2012, 09:22 AM   #1
jiml58
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Post Test Page Error


Given the following information, I get the Fedora test page rather than the one I created. Why?

Virtual host config:
<VirtualHost intranet.example.com>

ServerName intranet.example.com

Document Root/var/www/intranet
ErrorLog/var/log/httpd/intra.error_log
<Directory/var/www/intranet>

Order deny,allow
deny from all
Allow from 172.16
</Directory>
</VirtualHost>

Permissions on the directory:
drwx-x---2root root 4096 2008-09-14 14:12 intranet

Permissions on the file:
-rw-r--r-- 1 root root 6 2008-09-14 14:12 index
 
Old 01-23-2012, 09:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
the entire config would be useful, but it would seem that you're not hitting that virtual service. I would suggest deleting the /etc/httpd/conf.d/welcome.conf file which is the part of the configuration which shows that welcome page (presuming I have remembered the setup correctly) However just creating that virtualhost config won't make it get used. You also need to enable the "NameVirtualHost *:80" (or similar) directive in httpd.conf and restart apache, and, of course, use the appropriate hostname in your request.

that directory will also want to be readable by the apache service user, probably "apache".
 
Old 01-23-2012, 09:35 AM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
By the looks of the information you gave us, I see only "index." Rename this is index.html, just to be safe. Also, verify what file is being loaded for the test page, and rule that out if you can. It may be a wrong path that you need to correct also.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
test page not printing sant527 Linux - Newbie 4 11-19-2009 10:18 PM
Can't see Apache test page frankd99 Linux - Networking 7 07-27-2006 08:06 PM
Apache test page mpalazzini Linux - Software 2 10-03-2004 11:13 AM
Apache test page mpalazzini Linux - General 2 10-03-2004 11:12 AM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 01:35 PM


All times are GMT -5. The time now is 10:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration