LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-21-2004, 06:42 PM   #1
dienerk
Member
 
Registered: Feb 2004
Location: Ocala, Florida
Distribution: Suse 9.1 Pro, Redhat 9, Mandrake 9.2 & 8.1, Fedora 2, and White Board
Posts: 54

Rep: Reputation: 15
Apache default page


I think I need to start by asking smaller questions. Nobody seems to want to try to answer ones.

I have installed fedora core 2 and would like to set up apache. I have it running. I would like to use virtual hosts. I have edited my httpd.conf to add the virtual hosts. I restart apache after any modification of the httpd.conf file.

Can anyone tell me why the only page I get in a browser is the default page no matter what?

Here is an example:

NameVirtualHost 24.173.163.190:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost 24.173.163.190:80>
ServerAdmin linux@medscribe.biz
DocumentRoot /var/www/html/naghag.com/
ServerName naghag.com
<Directory "var/www/html/naghag.com">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 24.173.163.190:80>
ServerAdmin linux@medscribe.biz
DocumentRoot /var/www/html/diener.us/
ServerName diener.us
<Directory "var/www/html/diener.us">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>



Thanx for any help!
 
Old 10-21-2004, 07:29 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Try replacing exact ip address with a * (in all three places).
 
Old 10-21-2004, 08:55 PM   #3
dienerk
Member
 
Registered: Feb 2004
Location: Ocala, Florida
Distribution: Suse 9.1 Pro, Redhat 9, Mandrake 9.2 & 8.1, Fedora 2, and White Board
Posts: 54

Original Poster
Rep: Reputation: 15
Thanx for the suggestion.


Last edited by dienerk; 10-22-2004 at 08:29 AM.
 
Old 10-22-2004, 12:56 PM   #4
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 34
Might help to have a
DirectoryIndex server directive and a valid index.htm page. You do have valid htnl pages in those document root dirs?
 
Old 10-22-2004, 01:02 PM   #5
dienerk
Member
 
Registered: Feb 2004
Location: Ocala, Florida
Distribution: Suse 9.1 Pro, Redhat 9, Mandrake 9.2 & 8.1, Fedora 2, and White Board
Posts: 54

Original Poster
Rep: Reputation: 15
Problem solved

Your suggestion was correct by the way. I appreciate the help.

I checked with another book and that led me towards the fix. Similar to what you suggested.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Apache 2 Page linutzy Linux - Newbie 7 08-02-2005 07:18 PM
setting up default page in apache watts3000 Linux - Networking 2 09-25-2004 07:56 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
Apache default page?? andy18 Linux - General 6 07-16-2003 02:57 AM
apache default page davee Linux - Newbie 6 02-17-2003 09:46 AM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration