virtual server questions

Hi,

My objective is to create a virtual server for www.anothercompany.com on the same port 80. The instance has by default www.mycompany.com running.

1] While creating the virtual server, I should enter a URL Host. What is this? Should it be www.anothercompany.com or the host where the web server is running on?

2] how to configure each virtual server to have its own server.xml, obj.conf, and other configuration files?

thanks

[459 byte] By [Linda_B] at [2007-11-26 7:42:56]
# 1

> Hi,

> My objective is to create a virtual server for

> www.anothercompany.com on the same port 80. The

> instance has by default www.mycompany.com running.

>

> 1] While creating the virtual server, I should enter

> a URL Host. What is this? Should it be

> www.anothercompany.com or the host where the web

> server is running on?

in your case, it should be anothercompany.

> 2] how to configure each virtual server to have its

> own server.xml, obj.conf, and other configuration

> files?

>

u r better off creating another instance,if you need that.

please read the below url

http://docs.sun.com/source/819-0130/agvirtual.html#wp22222

> thanks

chilideveloper at 2007-7-6 19:51:42 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Just to be clear - URL Host should be the domain name that you want the server to answer. Something like:

www.anothercompany.com

Each instance of Web Server has its own server.xml, magnus.conf, obj.conf, etc. Unfortunately they can't share a common port on the same interface.

Within a single instance two virtual servers can share a common port on the same interface, and each VS can have its own obj.conf by being the sole member of a Class (within the GUI "Class" is a representation of an obj.conf and the VSs that will use it). Need two unrelated obj.conf files? Create two Classes.

JoeMcCabe at 2007-7-6 19:51:42 > top of Java-index,Web & Directory Servers,Web Servers...
# 3
Just to be clear, instances can share a common port on a single interface. However, instances cannot share a common port on a single IP address. (An interface can service multiple IP addresses.)
elving at 2007-7-6 19:51:42 > top of Java-index,Web & Directory Servers,Web Servers...
# 4

thanks for the answers.

I still have 2 questions please:

1] do I have to update DNS to publish www.anothercompany.com? this url corresponds to the virtual server.

2] Whenever I access the virtual server content (www.anothercompany.com), I receive "You are not authorized to view this page" and HTTP Error 403 - Forbidden.

I checked the permissions which are ok (rw-r--r--)

Nothing is logged in the access or error log files.

I only see this during web restart:

[06/Jun/2006:15:34:08] warning ( 1046) anothercompany: for host 0.0.0.0 trying to GET /, document-root reports: HTTP4330: removing trailing / from docroot (/data/web/anothercompany/docs/) for virtual server (anothercompany)

Will a DNS update solve this issue?

thanks,

Linda_B at 2007-7-6 19:51:42 > top of Java-index,Web & Directory Servers,Web Servers...
# 5

I recently did this on a solaris system.

Here are the steps:

Get a new IP address for server

Add the additional IP address to system interface

cd /etc

ls /etc/hostname.* (this gives you the type which I will use ## )

edit /etc/hosts to add new IP and name

cp /etc/hostname.## /etc/hostname.##:1

edit /etc/hostname.##:1 to be name in host table

ifconfig ##:1 plumb

ifconfig ##:1 information (IP netmask broadcast etc)

ifconfig ##:1 up

Modify existing webserver so it no longer uses 0.0.0.0

admin console - edit listen sockets

select socket (ls0, ls1, etc)

modify IP from 0.0.0.0 to IP of original webserver

apply changes

Add new webserver specifying new IP address in socket

Since it has a different IP, you can use port 80 without problems

DMcMullin at 2007-7-6 19:51:42 > top of Java-index,Web & Directory Servers,Web Servers...