473,545 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

virtual Host Configuration

60 New Member
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 3446
ronverdonk
4,258 Recognized Expert Specialist
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 New Member
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
2025
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 could easily be doing something wrong. The apache configuration is further complicated by having an include file for each virtual host, so the config...
3
2160
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 and <default web site>/app2. Starting the root application goes well but when starting app1 it complains that the HttpModule installed for the...
2
1113
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 file(which is in 2.0). {root_in_2.0}\web.config {root_in_2.0}\{vdir_in_1.1}\web.config I should say they are different app pools. ...
3
2759
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 2000 running. I have written a Windows Service to detect Application Errors and fire duplicates of events to the database, and this service sits on...
34
18158
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 "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
2
4327
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 installed. I have multiple virtual web servers configured in httpd.conf and php scripts run only if they are placed in my first VirtualHost DocumentRoot...
6
3311
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 the CMS system to handle it. This is working quite cool. I have a 404 handler in place which helps to manage the non-real files and folders. This...
2
1761
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 developped an applicacation on Tomcat 5.5.12 using java, struts, spring and hibernate. We are on a continous upgation, and we upgarate our site every
1
2248
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 as a virtual machine
0
7475
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7409
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7918
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7436
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5341
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4958
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1897
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
715
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.