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
asadmin-list-domains(1AS)					   User Commands					 asadmin-list-domains(1AS)

NAME
asadmin-list-domains, list-domains - lists the domains in the given domains directory SYNOPSIS
list-domains [--domaindir install_dir/domains] [--terse=false] [--echo=false] list-domains lists the domains in the given domains directory. This command is supported in local mode only. OPTIONS
--domaindir directory where the domains are located. If specified, path must be accessible in the filesystem. If not specified, the domains in the default install_dir/domains directory are listed. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. --echo setting to true will echo the command line statement on the standard output. Example 1: Using list-domains asadmin> list-domains List of domains: domain1 running samples not running Where: the domain1 and samples are listed and their status printed. EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-create-domain(1AS), asadmin-delete-domain(1AS), asadmin-start-domain(1AS), asadmin-stop-domain(1AS) J2EE 1.4 SDK March 2004 asadmin-list-domains(1AS)
All times are GMT -4. The time now is 05:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy