LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-18-2004, 07:06 AM   #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
Unhappy redhat apache virtual hosts


I am trying to setup virtual hosts using apache in redhat 7.3. All I ever get is the default page. I have read the apache documentation and everything I try still doesn't work. Is there something else that will walk me through it in "see spot run" language? I need to host about 8 web sites. PLEASE Help.

Thanx
 
Old 02-18-2004, 08:49 PM   #2
retep
Member
 
Registered: Sep 2003
Distribution: RedHat/Debian
Posts: 50

Rep: Reputation: 15
This may be of use:
http://rimuhosting.com/support/micro...st.jsp?t=vh#vh
 
Old 02-19-2004, 10:56 AM   #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
I took your advice and followed the instructions.

So what am I not getting! I still only get the default page. I am reading everything I can find and trying everything I read, as much as I can anyway, but still get the default page. I don't want to give up but I am starting to get frustrated to the point of going back to a windows based server. I even installed webmin and keep getting the default page. If someone can help, please do.
 
Old 02-19-2004, 06:29 PM   #4
ryancoolest
Member
 
Registered: Jan 2004
Location: Pinas
Distribution: Mandrake
Posts: 152

Rep: Reputation: 30
If your configuration is right on httpd.conf I think you have to double check your DNS configuration. And review your httpd.conf just to make sure....
 
Old 02-20-2004, 12:08 AM   #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
Here is a copy of part of the file:

NameVirtualHost 12.345.678.912


<VirtualHost 12.345.678.912:*>
DocumentRoot /var/www/html/diener.us
ServerName diener.us
DirectoryIndex index.htm index.html
</VirtualHost>

does this help?

My Dns is fine, I just can't get any other page than the default
 
Old 02-20-2004, 12:39 AM   #6
ryancoolest
Member
 
Registered: Jan 2004
Location: Pinas
Distribution: Mandrake
Posts: 152

Rep: Reputation: 30
Quote:
Originally posted by dienerk
Here is a copy of part of the file:

NameVirtualHost 12.345.678.912


<VirtualHost 12.345.678.912:*>
DocumentRoot /var/www/html/diener.us
ServerName diener.us
DirectoryIndex index.htm index.html
</VirtualHost>

does this help?

My Dns is fine, I just can't get any other page than the default
If your DNS is fine then try this...

<VirtualHost www.diener.us>
ServerAdmin webmaster@diener.us
DocumentRoot /var/www/html/diener
ServerName www.diener.us
ErrorLog /var/logs/httpd/error_log
TransferLog /var/logs/httpd/access_log
</VirtualHost>

This works for me... tail the logs and trace the error....
 
Old 02-20-2004, 12:43 PM   #7
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
Hooray!!!!!!!!!!!
I used webmin and changed some setting so the file looks like this and it worked!

<VirtualHost *>
DocumentRoot "/var/www/diener.us/_vti_cnf"
ServerName diener.us
</VirtualHost>

I think it worked because I named the virtual host above. Obvious problem, Huh?

I have six other websites now and they are all working. The next problem will be, why they are scrambled. I created them using frontpage, could that be the problem? I will create new pages using a good html editor for linux and try that for a solution. If that will work or any other recommendations please let me know. Thanx again everyone!!!!! I hope this helps someone else.
 
  


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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
apache virtual hosts Red Squirrel Linux - Software 4 06-20-2004 09:05 AM
redhat 7.3 apache virtual hosts dienerk Linux - Newbie 15 02-20-2004 12:42 PM
Webpage loads slowly using virtual hosts in Apache 2.0 Linux Redhat 9 dste0713 Linux - General 0 01-21-2004 12:35 PM
Apache Virtual Hosts quozt Linux - General 3 10-15-2003 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:22 PM.

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