|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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> |
|
#2
|
|||
|
|||
|
You can't invent any servername you want. For intranet base, you need too add secure.redhat to /etc/hosts file.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
it works!
thanks freebsd, (before that, i have add a eth0:1virtual 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 ![]() |
|
#6
|
|||
|
|||
|
>> 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). |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > newbie on virtual host |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|