LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-21-2004, 04:12 PM   #1
yellowjelly
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Rep: Reputation: 0
Red Hat 9 GUI Virtual Hosts setup


Is there any step by step information on using Ret Hat 9 GUI to setup Name Based Virtual Hosts or IP Based in Apache. I havenít been able to find one, so I bought a book on Mastering Red Hat Linux 9 and Iím still not getting any results. Iíve been trying for over a week and Iím stuck, so as a last resort Iím posting here.

1st. Do I need to setup the DNS server, if so, do I need Caching?

Here is my current setup.

I am behind a linksys router and have port 80 forwarded to my serverís IP e.g. 192.168.1.25

I installed ddclient to update my dynamic IP for Zoneedit which I have setup for 2 of my sites. This works fine, enough said.

Using a browser, when I type in e.g.mywebsite1.com and e.g.mywebsite2.com I get the Apache test web page - ďThis page is used to test the proper operation of the Apache Web server after it has been installed. If you can read this page, it means that the Apache Web server installed at this site is working properly.Ē

Great, I know the error page noindex.html file works. So Apache is working.

Now Iím trying to use the Red Hat GUI interface to set all this stuff up. So when I start the Apache Configuration and the information on the Apache Configuration is as follows

Main tab
Server Name: 192.168.1.25,
Available Addresses
All available addresses on port 80
Virtual Hosts
Name Default Virtual Host Ė I changed nothing here

Added Virtual Host Properties
Virtual Host Name: mywebsite1.com I tried e.g.mywebsite1.com
IP Address: 192.168.1.25:80
Host Name e.g.mywebsite1.com
Aliases mywebsite1.com
As for the IP address, Iíve also tried *:80 and it still did not work.
I created another eth0:1 for IP 192.168.1.26 and eth0:2 for IP 192.168.1.27
Went through setting up the DNS server to have e.g.mywebsite1.com point to 192.168.1.26 and e.g.mywebsite2.com point to 192.168.1.27 but it didnít help so I stopped the service.

Here is what is now in the httpd.conf
<VirtualHost 192.168.1.25:80>
DocumentRoot /var/www/mywebsite1/htdocs/
ServerAdmin: e-mail address
ServerName e.g.mywebsite1.com
ServerAlias e.g.mywebsite1.com
HostNameLookups off
<VirtualHost>

I stoop the restart the httpd service after making any changes.

Thanks
David
 
Old 12-21-2004, 06:13 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Step one: dump the GUI. GUI config tools suck
Step two: read this

The config block you posted looks right (except the ':' after ServerAdmin, and the ServerAlias is redundant), but if I had to guess I'd say that the config "tool" didn't uncomment NameVirtualHost *:80 in httpd.conf
 
Old 12-21-2004, 07:29 PM   #3
yellowjelly
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Yup, I think the GUI isn't going to work for me at this time.

Thanks
 
  


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
apache-ssl setup virtual hosts notolerance Linux - Software 3 12-22-2005 05:20 PM
GUI setup Red Hat Linux 9.0 sniperbooger Linux - Newbie 1 11-05-2005 02:13 PM
webalizer setup for virtual hosts intranet_man Linux - Security 1 03-03-2005 01:00 PM
How to setup virtual hosts for a web site? George2 Linux - Software 4 10-21-2003 04:46 AM
Hosts in Red Hat 7.3 frankencat Linux - General 3 09-24-2002 12:10 PM


All times are GMT -5. The time now is 07:06 PM.

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