473,461 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

virtual Host Configuration

Hi

I need to set up a virtual host . Let me know the steps involved to set up a virtual host. So that , though the internet connection is not available , i could access my intranet pages as www.example.com.

Please shower ur inputs.

Thanks in advance.

Somaskarthic
Dec 23 '06 #1
2 3439
ronverdonk
4,258 Expert 4TB
You keep entering double posts, this time in the Linux forum!!
This thread belongs in the Apache forum. Will redirect it.
moderator :cool:
Dec 23 '06 #2
cassbiz
202 100+
There are several different areas that you need to set up.

On RedHat Linux you will need to do the following:

in /etc/named.conf you will need to create a zone entry for your domain.

Expand|Select|Wrap|Line Numbers
  1. zone "example.com" IN {       type master;    file "example.com";   allow-update { 192.168.0.1; localhost; }; }
Change the IP Address 192... to your server IP and example.com to your domain name.

Then in /var/named you will have to create a Zone file

Expand|Select|Wrap|Line Numbers
  1. $TTL 86400
  2. @               IN      SOA     ns.yourserver.com. 
  3. sysadmin.yourserver.com. (
  4.                         2007120301 ;
  5.                         3600 ; refresh
  6.                         900 ; retry
  7.                         1209600 ; expire
  8.                         86400 ; default_ttl
  9.                         )
  10. example.com.     IN      MX      10      mail.example.com.
  11. mail            IN      A       192.168.0.1
  12. @               IN      NS      ns.yourserver.com.
  13. @               IN      NS      ns1.yourserver.com.
  14. home          IN      A       192.168.0.1
  15. secure        IN      A       192.168.0.1
  16. ;virtual domain information
  17. ftp             IN      A       192.168.0.1
  18. @             IN      A       192.168.0.1
  19. www         IN      A       192.168.0.1
After you have your Zone files then you will need to add an entry into your httpd.conf

On my server it is located at /etc/httpd/conf (it may be somewhere else on your server)

Here is the VirtualHost information

Expand|Select|Wrap|Line Numbers
  1. <VirtualHost 192.168.0.1:80>
  2. ServerAdmin sysadmin@yourserver.com
  3. DocumentRoot /domains/example.com
  4. ServerName example.com
  5. ServerAlias www.example.com
  6. ErrorLog /domain/example.com/logs/error_log
  7. CustomLog /domains/example.com/logs/access_log combined
  8. ErrorDocument 404 /oops/404.html
  9. ErrorDocument 500 /oops/500.html
  10. </VirtualHost>
After you have all of the info entered then you will have to restart your named and httpd
Dec 26 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: andy | last post by:
Hi, I'm trying to get mod_python working on my web server, but I'm running into problems, possibly due to having virtual hosts configured. I'm no apache guru (newbie is more accurate!) so I...
3
by: Manso | last post by:
Hi, We have an application that is installed in default web site (root web site). The same application will be installed as virtual directories under the root site e.g. <default web site>/app1...
2
by: cisco | last post by:
My main site is in .NET 2.0 but i have one virtual directory under this that i want to run under 1.1. When i change the mode to 1.1 and try to browse to it it seems to pull in the root's web.config...
3
by: sunstarwu | last post by:
Hi, On my laptop I am running Virtual Server 2005 with 2 x Windows 2003 Servers. Both the VS can access the internet and shared files on the host laptop. On the host laptop I have a SQL Server...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
2
by: George Zervakos | last post by:
Hello, I'm new to php and was wondering if someone could help me out with the best way to accomplish this. I have Solaris 9/Apache 1.3.31/PHP 5.1.4 that I compiled from source code and...
6
by: David | last post by:
Hi all, Using C# .NET 1.1 I am creating a CMS type of application. So far so good. I have a templating system in place that works fantastically. I can remap non-real files and folders and get...
2
by: Yash | last post by:
Dear all, I am newbee with virtual hosts, please help ! I am facing a problem with virtual hosting. I want to create virtual host on my local system before creating it on server. We have...
1
by: =?Utf-8?B?QiBTaW5naA==?= | last post by:
Hi Scenario 1) Host - XP Laptop with internet connection using Sky Broadband Wireless Router Netgear DG834GT 2) MS Virtual Server 2005 - I have deployed an XP MS Virtual Server 2005 to act...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.