[SunHELP] IP ports

Ron Wickersham rjw at alembic.com
Mon Jun 14 14:53:53 CDT 2004


> Date: Mon, 14 Jun 2004 14:52:48 +0100
> From: Lara Matthews <lara.matthews at accesscomputing.co.uk>
>
> Hi
>
> I have set up an SB100 with two ip addresses on port eri0 and eri0:1.

check that the setup is working by pinging each of the ip addresses,
both should work.

> I had hoped to run apps, webmail and a web based calender prog on port 80
> of both of these addresses but it appears that because there is only one
> physical interface if port 80 is used by one ip address then it can't be
> used by the other.

if you're using Apache as the http server, then look at the documentation
for virtual hosting.  you only need address virtual hosting which is perhaps
easier than name virtual hosting where you have to port 80 servers on the
same ip address.   there's probably an example at the bottom of the
httpd.conf file on your machine.   your entry will need to look something
like this:

<VirtualHost 66.182.11.236>
DocumentRoot /export/www/mentor
ServerName sonomamentoring.org
ServerAlias www.sonomamentoring.org  sonomamentoring.org
ServerAdmin jwittes at thegrid.net
ScriptAlias /cgi-bin/ /export/www/mentor-cgi/
ErrorLog /export/www/mentor/logs/error_log
CustomLog /export/www/mentor/logs/access_log combined
</VirtualHost>

put your the eri0:1 ip address on the VirtualHost line.  if you don't have
a separate cgi directory, then you can leave the ScriptAlias.   if you
don't want a separate log files for the two ip addresses, then leave out
the two log lines.   eri0 will be served by the default config choices
earlier in the httpd.conf file.

i get the digest version.  sorry if someone has already answered.

-ron



More information about the SunHELP mailing list