Sponsored Content
Full Discussion: BIND setup
Special Forums IP Networking BIND setup Post 4634 by biswa on Saturday 28th of July 2001 02:10:46 AM
Old 07-28-2001
Sometimes hosting multiple domains with virtual host tag of web server creates problem with single ip. So it is safer to use virtual host by address instead of name. However, Apache web server does give the oppertunity to host multiple web sites on the same machine through virtual hosts in two ways
By name
By IP

For both the cases your name service has to run perfectly well. So first of all concentrate more on the name service, nslookup is the bets tool for checking it out. You can even run all your services like, Web, Name, Mail, FTP and blah blah on the same computer. But take utmost care to name service as this may create hazards in your network traffic. Use route command to see if all your networkable devices are connected to your computer properly.

If you are using "by name" option, then create a CNAME for your second site. This CNAME has to be defined in your zone files. You should use one ip address and have a name like yourserver.yourdomain.com
The CNAME will give another name to the same computer like mycomputer.yourdomain.com. So now the following two sites can be accessed at the same computer
http://yourserver.yourdomain.com
http://mycomputer.yourdomain.com
You can put two different document roots to the two sites and have logically two different sites hosted in the same computer at one ip. I am not sure if you can host a site of a different domain this way.
I am using Linux 6.2 and apache web server. I have hosted two different webs of totally two different domains. However, this hosting has been done by using "virtual hosting by ip". So I have used two ips for the same NIC of the same machine. Of course, I know this is not the right solution as the ips are going to exhaust soon and I have to host lot more. So "virtual hosting by name" could be the best solution.
 

9 More Discussions You Might Find Interesting

1. IP Networking

bind() error

Hello. I am havig problems with this program. It is a server supposed to get 2 integers from client, calculate a sum and send result back to client. I am getting a bind() error when attempting to execute it. Any help appreciated #include <stdio.h> #include <sys/types.h> #include... (2 Replies)
Discussion started by: Virtuosso
2 Replies

2. Cybersecurity

bind version

How do I find out my current version of BIND? Dhall1973:D (1 Reply)
Discussion started by: dhall1973
1 Replies

3. IP Networking

BIND question

Suppose you had a bunch of domains registered with names following the scheme, 11example.com 22example.com 33example.com etc. These domains are all for virutal webhosting, and will have the same web servers with the same IPs on all of them. The question is, because they're 2nd level domains, is... (3 Replies)
Discussion started by: vertigo23
3 Replies

4. AIX

NIM server setup on etherchannel setup environment

I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it? I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame. Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies

5. Red Hat

NFS - IP bind

Hello, Our production linux server have multiple network interface. Recently we installed and started NFS. Now the client server cannot mount to the server running NFS. Later it was discovered that the port being used for NFS is only bound to one IP address, which is not the IP address I... (0 Replies)
Discussion started by: hemangjani
0 Replies

6. UNIX for Advanced & Expert Users

DNS Bind

Hello, I have a question about dns file zone. Every zone file begins like: @ 86400 IN SOA ns1.website.com. admin@website.com. ( It means that name server ns1 is responsible for this zone. At the ending I can add the records like mysite.com IN A 1.2.3.4 So it will... (2 Replies)
Discussion started by: mirusnet
2 Replies

7. Red Hat

BIND configuration

I have problems with a simple BIND configuration in CentOS. I have a static public IP 1.1.1.1 and I recently bought a domain name gigi.com. I just want that gigi.com points to 1.1.1.1 (Apache Web Server). This is how my named.conf file looks: options { directory "/var/named"; }; ... (0 Replies)
Discussion started by: pasadia
0 Replies

8. UNIX for Dummies Questions & Answers

Can't bind to IP

When you get the message can't bind to ip already in use. is there a command to search to see everything that is using that IP? I've already check the host and hostname files (2 Replies)
Discussion started by: mchelle_99
2 Replies

9. UNIX for Advanced & Expert Users

Bind

Hi All I need to do bind of exiting filesystem to new storage allocated mount --bind /prod/OpenCSS /var/lib/test echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab will this command just work ? (2 Replies)
Discussion started by: anil529
2 Replies
ftpservers(4)							   File Formats 						     ftpservers(4)

NAME
ftpservers - FTP Server virtual hosting configuration file SYNOPSIS
/etc/ftpd/ftpservers DESCRIPTION
The ftpservers file is used to configure complete virtual hosting. In contrast to limited virtual hosting, complete virtual hosting allows separate configuration files to be specified for each virtual host. The set of configuration files for each virtual host are placed in their own directory. The ftpservers file associates the address of each virtual host with the directory its configuration files are stored in. The virtual host configuration files must be named: ftpaccess Virtual host's access file ftpusers Restricts the accounts that can use the virtual host ftpgroups Virtual hosts enhanced group access file ftphosts Allow or deny usernames access to the virtual host ftpconversions Customize conversions available from the virtual host You do not need to put every file in each virtual host directory. If you want a virtual host to use the master copy of a file, then do not include it in the virtual host directory. If the file is not included, the master copy from the /etc/ftpd directory will be used. The file names must match exactly. If you misspell any of them or name them differently, the server will not find them, and the server will use the master copy instead. The ftpaddhost utility is an administrative tool to configure virtual hosts. See ftpaddhost(1M). File Format There are two fields to each entry in the ftpservers file: address directory-containing-configuration-files For example: 10.196.145.10 /etc/ftpd/virtual-ftpd/10.196.145.10 10.196.145.200 /etc/ftpd//virtual-ftpd/10.196.145.200 some.domain INTERNAL When an FTP client connects to the FTP Server, in.ftpd(1M) tries to match the IP address to which the FTP client connected with one found in the ftpservers file. The address can be an IPv4 or IPv6 address, or a hostname. If a match is found, The FTP server uses any configuration files found in the associated directory. If a match is not found, or an invalid directory path is encountered, the default paths to the configuration files are used. The use of INTERNAL in the example above fails the check for a specific directory, and the master configuration files will be used. Either the actual IP address or a specific hostname can be used to specify the virtual host. It is better to specify the actual IP of the virtual host, as it reduces the need for a domain lookup and eliminates DNS security related naming issues, for example: 10.196.145.20 /etc/ftpd/config/faqs.org/ ftp.some.domain /etc/ftpd/config/faqs.org/ Lines that begin with a # sign are treated as comment lines and are ignored. FILES
/etc/ftpd/ftpservers ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWftpr | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
ftpaddhost(1M), in.ftpd(1M), ftpaccess(4), ftpconversions(4), ftpgroups(4), ftphosts(4), ftpusers(4), attributes(5) SunOS 5.10 1 May 2003 ftpservers(4)
All times are GMT -4. The time now is 07:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy