LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Nour Douchi <nourdouchi@hotmail.com>
To : scott@eds.net.au, linuxsa@linuxsa.org.au
Date: Sat, 20 Nov 1999 09:12:28 CST
Re: Apache question/problem
Scott,
you need to go to the directory that contains your web server's
configuration files. Mine is /etc/httpd/conf. In the conf directory, open
the "http.conf" to edit some information:
- Spectify the "NameVirutalHost" directive to be the IP address
of your machine as follows, of course the IP I entered is
imaginary:
NameVirtualHost 124.201.211.11
- Then specify your virual domains as follows:
<VirtualHost www.company1.com>
ServerAdmin webmaster@company1.com
DocumentRoot /www/company1/public_html
ServerName www.company1.com
ServerAlias *.company1.com www.company1.com
ErrorLog logs/company1.com-error_log
TransferLog logs/company1.com-access_log
</VirtualHost>
<VirtualHost www.company2.com>
ServerAdmin webmaster@company2.com
DocumentRoot /www/company2/public_html
ServerName www.company2.com
ServerAlias *.company2.com www.company2.com
ErrorLog logs/company2.com-error_log
TransferLog logs/company2.com-access_log
</VirtualHost>
After you've edited the http.conf file, restart the apache server to let
re-read the configuration file. You do that by typing
kill -HUP `cat /var/run/httpd.pid`
You may need to type in something other than /var/run/httpd.pid
this will depend on where your system store the process id for apache.
Of course, you could add more configuration lines as you desire to every
virtual host. Refer to the Apache documentation of this issue. Go to
www.apache.org and link to the Apache project, then to the server
documentation. You will need to search under virtual domains topic. It is
pretty comprehensive.. I got most of my info there... Let me know how that
goes..
Nour
>From: "Scott Rouvray" <scott.rouvray@eds.net.au>
>Reply-To: <scott@eds.net.au>
>To: <linuxsa@linuxsa.org.au>
>Subject: Apache question/problem
>Date: Fri, 19 Nov 1999 16:26:48 +1030
>
>Hi, I have just setup a Linux (Caldera 2.2) box which we plan to use as a
>webserver. It runs Apache with no problems with FTP and WWW to the box. It
>has one IP address on it at present.
>
>I have been asked if we can add another website to the box. The problem is
>that each site has its own DNS entry. Is it possible with Apache to have 2
>IP address and 2 separate websites on the same box so that the user only
>sees the relevant DNS entry in the url and not a http://sitename/~directory
>etc.
>
>
>thanks for your help
>
>
>Scott Rouvray
>Pulteney Old Scholars Association
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page