Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 11th, 2001, 11:44 PM
melvinfoo melvinfoo is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 23 melvinfoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
newbie on virtual host

hi,

i want to setup another virtual host, on top of my current
intranet base http://redhat, i want to add another one which
is http://secure.redhat

all i got is

- cannot find server
- The page cannot be displayed

can help?

regards,
melv


my httpd.conf

NameVirtualHost *

<VirtualHost *>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /usr/local/apache/secure/htdocs
ServerName secure.redhat
ServerAdmin webmaster@dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

Reply With Quote
  #2  
Old June 12th, 2001, 12:33 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You can't invent any servername you want. For intranet base, you need too add secure.redhat to /etc/hosts file.

Reply With Quote
  #3  
Old June 12th, 2001, 01:25 AM
melvinfoo melvinfoo is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 23 melvinfoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi,

i add an entry in my /etc/hosts

192.168.100.222 redhat secure.redhat

but still can't work.

p/s: is it possible to add a virtual host in intranet environment?

cheers,
melv

Reply With Quote
  #4  
Old June 12th, 2001, 01:27 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can you ping your host by name (secure.redhat and redhat)?

>> - The page cannot be displayed

Are you using IE? You need to add the same /etc/hosts entry to C:\WINDOWS\HOSTS file.

Reply With Quote
  #5  
Old June 12th, 2001, 09:08 PM
melvinfoo melvinfoo is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 23 melvinfoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
it works! thanks freebsd, (before that, i have add a eth0:1
virtual ip...the furthest i can get is access by ip but can't by
domain name)

i wonder is it bcos of virtual domain name, we have to add
an entry into the hosts in every browser who need to access
them?

cheers!
melv

Reply With Quote
  #6  
Old June 12th, 2001, 10:10 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> i have add a eth0:1 virtual ip

Then you should have used IP-based vhost, not Name-based.

>> i wonder is it bcos of virtual domain name

No. It's because your other boxes within your local network have no way of knowing what hostname the IP 192.168.0.xx should be. It's all about DNS resolver that is unable to resolve local hostname unless you run a local nameserver.

>> we have to addan entry into the hosts in every browser who need to access
them?

Not to browser but to C:\WINDOWS\HOSTS file so that your Windows box can resolve local IP by hostname. You might wonder when should you run a local nameserver and when to rely on HOSTS file. The answer is very simple. If you have a complex local network, running a local nameserver can keep everything centralized in one location. You just need to update the records on your nameserver. If you have just a few boxes (less than 10), it doesn't take too much time to update each of the HOSTS file (on the client-side).

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > newbie on virtual host


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway