LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 09-29-2009, 10:38 AM   #1
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Rep: Reputation: 15
How to setup name-based virtual host using COMCAST 10.1.10.* network?


Hi All,

1) My Internet connection is COMCAST with a router box and one public IP address.
2) My web server is Apache using 10.1.10.200 as its address.
3) Now I want to add another host name (www.myhealth.com) on my server. I did DNS forwarding (with Godaddy) to my COMCAST static IP address.
4) I also added (in my httpd.conf) a block for virtual hosting:
<VirtualHost>
....
</VirtualHost>

But it does not work.
Because whenever user tried www.myhealth.com he cannot see the page. He always sees my first web site.

Can anyone see what is my problem?

Thanks a lot!

Philip
 
Old 09-29-2009, 11:30 AM   #2
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 11.4 & Scientfic Linux 6.1
Posts: 6,737

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
be WARNED unless you pay comcast EXTRA for a business connection they might cancel your account for running a server .It is in the fine print . you stipulate that YOU WILL NOT RUN A SERVER on a HOME account.

they did that to me .
 
Old 09-29-2009, 02:23 PM   #3
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi John VV,

Yes. I am paying COMCAST for running a server.

Thanks for your warning.

Philip
 
Old 09-29-2009, 07:42 PM   #4
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 11.4 & Scientfic Linux 6.1
Posts: 6,737

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
i would read the apache doc on v-host
http://httpd.apache.org/docs/2.2/vhosts/
all the info is there . as long as godady will forward it to
h??p://webSite.com/VertualHost

and
/var/WWW/http ( docroot for the first web site)
/var/WWW/http/VertualHost ( the docroot for the v-host)
is mapped in httpd.conf
Code:
# Ensure that Apache listens on port 80
Listen 80

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /www/example1
ServerName www.example.com

# Other directives here

</VirtualHost>

<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example.org

# Other directives here

</VirtualHost>
PS. i tend to set up servers with everything apache uses in one folder
/var/WWW/Apache
/var/WWW/http ( the CMS)
/var/WWW/MySql
/var/WWW/PhpMyAdmin
and the folder /var/WWW is a MOUNT POINT for it's own partition - or disk .
 
Old 10-01-2009, 10:38 AM   #5
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi John VV,

Yes. I have read the Apache document.

My problem has to do with using the 10.1.10.* private network.
As soon as I changed the 10.1.10.* IP address to puplic IP address and followed the Apache documentation (as you have provided), my virtual host works.

Thanks for your time!

Philip
 
  


Reply

Tags
apache, comcast


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Name and IP based virtual host in Apache hifun Linux - Newbie 5 06-17-2009 02:06 PM
Adding virtual interface for IP based virtual host pridefc Linux - General 6 03-16-2008 04:52 PM
configuring secured name based virtual host bzlaskar Linux - Security 4 04-19-2007 06:05 AM
How to configure the virtual host based name? gz_xmg Linux - Networking 0 12-28-2004 02:12 AM
Name Based Virtual Host problem helios007 Linux - Networking 6 12-21-2003 04:41 PM


All times are GMT -5. The time now is 11:17 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
Open Source Consulting | Domain Registration