Multiple Virtual servers, one listener setup

I am trying SJS 7 as a Proof of Concept project to replace our existing iPlaney 6 and Netscape 2 server instances.
My question is how do I setup SJS to have one http listener on port 80, but be able to handle multiple websites? I want to use a CNAME under our DNS and then have the SJS environment look to see what the domain name is and point it to the correct directory when called upon via web browser.
Under our DNS, each stub file has something like:
mysite IN CNAME devsite.mydomain.com
mysite2 IN CNAME devsite.mydomain.com
Under our Apache's virthost.conf, I just need to do the following:
<VirtualHost mysite.com>
ServerName mysite.com
DocumentRoot /web/mysite.com/htdocs
ErrorLog /var/web/mysite.com/error_log
CustomLog /var/web/mysite.com/access_log common
ScriptAlias /cgi-bin/ "/web/mysite.com/htdocs/"
<Directory /web/mysite.com>
Options Indexes FollowSymLinks Multiviews +Includes
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost mysite2.com>
ServerName mysite2.com
DocumentRoot /web/mysite2.com/htdocs
ErrorLog /var/web/mysite2.com/error_log
CustomLog /var/web/mysite2.com/access_log common
ScriptAlias /cgi-bin/ "/web/mysite2.com/htdocs/"
<Directory /web/mysite2.com>
Options Indexes FollowSymLinks Multiviews +Includes
AllowOverride All
</Directory>
</VirtualHost>
I setup two virtual servers under one configuration, but the http-listener-1 instance only wants to point to one virtual server instance rather than the pair. I tried to add a 2nd http-listener, but it won't allow me to use the same CNAME address nor port 80 for it as well.
How do I do the same thing that I do with Apache virthosting under SJS 7?
-- Michael

I took a look at the server.xml file, and I currently have this:
<http-listener>
<name>http-listener-1</name>
<ip>sjsdev.mysite.com</ip>
<port>80</port>
<server-name>sjsdev.mysite.com</server-name>
<default-virtual-server-name>screwball</default-virtual-server-name>
</http-listener>
<virtual-server>
<name>screwball</name>
<http-listener-name>http-listener-1</http-listener-name>
<host>sjsdev.mysite.com</host>
<object-file>screwball-obj.conf</object-file>
<document-root>/web/screwball.mysite.com/htdocs</document-root>
<log-file>/web/screwball.mysite.com/logs/server.log</log-file>
</virtual-server>
<virtual-server>
<name>fastball</name>
<http-listener-name>http-listener-1</http-listener-name>
<host>sjsdev.mysite.com</host>
<object-file>fastball-obj.conf</object-file>
<document-root>/web/fastball.mysite.com/htdocs</document-root>
<log-file>/web/fastball.mysite.com/logs/server.log</log-file>
</virtual-server>
I bounced the listener and virtual hosts then tried using a browser for testing.
If I go to http://screwball.mysite.com, it goes to the correct htdocs directory.
If I go to http://fastball.mysite.com, it goes to the screwball htdocs directory instead.
Also, is it possible to make these configuration changes via the Administration web GUI?
Trying to document this as much as possible, mostly via screenshots, for other team members.
-- Michael

Similar Messages

  • Another newb question: multiple virtual servers

    Hi, I have yet another ignorant question. I have several unrelated web projects that I am working on, and I would like to be able to set up a virtual server for each one for testing purposes, such as: http://project1, http://project2, http://project3. Can someone tell me if this is doable, and if there are any tutorials/resources on this for someone who has 0 experience running a web serer? Sorry for being so ignorant!

    Yes, it is doable.
    You can setup virtual server either by IP or by name.
    If you have one IP, and want to set them up by name (ex. http://project1, http://project2, http://project3) you can do so easily with this type of configuration:
    <virtual-server>
        <name>mydomain</name>
        <http-listener-name>http-listener-1</http-listener-name>
        <host>*.mydomain.com</host>
        <document-root>/www/domain</document-root>
      </virtual-server>
      <virtual-server>
        <name>myotherdomain</name>
        <http-listener-name>http-listener-1</http-listener-name>
        <host>*.myotherdomain.com</host>
        <document-root>/www/myotherdomain</document-root>
      </virtual-server>
    ....The important part here is that
    a) all virtual servers share the same HTTP listener
    b) which virtual server serves the request depends on the $HOST request header send by the client. Sun Web Server does the matching for you. It will match $HOST vs. the virtual server's host attribute. Depending on which site you connect to the right virtual server will be used.
    c) if the $HOST request header does not match any of the virtual servers, then the default virtual server defined in the HTTP listener will be used.
    To create a virtual server, use the Admin GUI, access the configuration, and then add new virtual server. Or use the following CLI command.
    wadm> create-virtual-server --config=myconfig --http-listener-name=http-listener-1 --document-root=/www/docs/myserver.com --host-pattern=myserver.com --log-file=../logs/myserver.com-error_logs myserverHost pattern will be used for matching. Some of this elements might be optional.
    Hope that helps. And keep the questions coming :D
    Edit: Also check the documentation
    Using Virtual Servers in SJS Web Server 7.0

  • How to customize search in WS 7 and for multiple virtual servers?

    I'm not clear on how to customize search results pages in Sun Web Server 7. The documentation (the Adminstrator's Guide, page 215) says:
    You can take a look at the default search application located at /bin/https/webapps/search as a sample application
    but I'm not seeing any such thing. I did a find . -name search -type d from the server root and instance root but the only search directories I'm seeing are subdirectories within the generated directory and they look like system generated jsps that I shouldn't touch (So I didn't :-)
    So one question is, where is the default app? A second question is, how do we set up different branding for different virtual servers?
    We're currently using WS 6.1 and it has a field in the GUI for the directory containing the web app to use for search. That seems to have disappeared in WS 7.
    Any help would be appreciated. Thanks.
    Dave

    I don't use the search engine, so I'm afriad I don't have direct experience here.
    What I'd probably do is modify the app so that it looks at the Host data to determine which directory it should point to for graphics, formatting, etc. You could also use the obj.conf with variables to pull graphics from directories appropriately branded. Something like:
    1) Create "additional doc directory" for images
    2) Find the entry in the obj.conf that points to the new directory
    3) Modify the path to something like /path/to/$host/images
    4) Make sure you create directories like:
    /path/to/foobar.com/images/
    /path/to/www.foobar.com/images/
    /path/to/baz.com/images/
    /path/to/www.baz.com/images/

  • Local director with multiple virtual servers

    I have a local director with 4 interfaces. Two interfaces are used for 2 virtual servers each bound to 2 real servers. The virtuals and the reals are on the same sub-net as the local director's IP address.
    I would like to know if I can use the other 2 interfaces to bind 2 real addresses to a third virtual where all three of the address are located on a different Subnet from the servers already present.

    Yes this is possible. However, in order to make this work you will need to configure a couple
    of things. First, on the Local Director you should configure an 'alias ip address' that belongs in this new subnet. Second, you need to configure a secondary IP address on the upstream router. This will serve several purposes. One, the servers will be able to reach devices outside their own subnet. Two, the router will now belong to this subnet and therefore will be able to ARP for the new virtual.
    Hope it helps.
    Best regards,
    Chip Schneider
    Cisco TAC

  • How to configure multiple (virtual) servers?

    Hi, I have one public IP (for example: 92.62.26.10)
    and 3 servers. Mac Server, Ubuntu Server and Windows server..
    Snow Leopard server have 92.62.26.10 & 192.168.1.1
    Ubuntu server have 192.168.1.10
    Win server have 192.168.1.11
    DNS is set to:
    mac.domain.com - 92.62.26.10 (it's worked everywhere)
    ubuntu.domain.com - 192.168.1.10 (it's not worked everywhere, only in private network or VPN)
    win.domain.com - 192.168.1.10 (it's not worked everywhere, only in private network or VPN)
    What I need to setup? Proxy or something else?
    Thank you
    Message was edited by: Jirik.me

    You are running an internal DNS server presumably but don't have these hostnames (A-NAME or C-NAME records) set on external DNS servers.
    If you run a whois on your domain you can find our who hosts the DNS for the domain if you don't already know. Often DNS hosting companies will have web based tools for you to edit the DNS entries yourself or alternatively you may need to email them and ask them to create the records.
    It sounds like you would like to point the addresses ubuntu.domain.com and win.domain.com to the IP address 92.62.26.10 as well. To do this you will have to make sure the services running on each box use a different port to one another. (I.e. You cannot have something running on port 80 on both servers).
    Depending on your router also you may only be able to do basic forwarding (I.e. Port 80 forwards to Mac.domain.com; port 443 forwards to ubuntu.domain.com; port 25 forwards to win.domain.com).
    If you need more flexibility you may need to get more external IP addresses.

  • Multiple email servers one domain

    Probably a silly question.
    I'd like to set up two email servers in my domain to receive mail for our company.  I want one server to be the main server with all the user accounts and the other to be a back up store and forward server.  When mail comes in, and the main server with user accounts is down, then I'd like the store and forward server to collect all email for our users and then forward it on when the main server comes back up.
    So, I've set up two servers in my DNS with different preferences in their MX records - server1.mydomain.com with an preference of 10 in it's MX record.  server2.mydomain.com with 20 in it's MX record.  server1 is where all user accounts are located.
    Now presume that server1 is down.  Sending servers will query my DNS records, find out server1 is the preferred server discover it's not there and go to server2.  If the email received by server2 has a user for this domain that is not located on this server, how does it know where to forward it and how do I set that up so I also don't have an open relay?
    Thx.
    J.

    Bonjour
    A iweb site is just a folder (SiteName folder). So you can have several folders in your server.
    in iWeb sidebar, you can have several Sites like:
    . SiteName1
    . SiteName2
    . SiteName3
    if you publish your iWebsites to the same FTP server
    you will have URL like this
    SiteName1 ---> http://www.yourdomainname.com/SiteName1/ or http://www.yourdomainname.com/
    SiteName2 ---> http://www.yourdomainname.com/SiteName2/
    SiteName3 ---> http://www.yourdomainname.com/SiteName3/
    You don't need subdomain. but you can use the SiteName folders created by iWeb to make some subdomains
    SiteName1 ---> http://www.yourdomainname.com/ (it is not a subdomain)
    SiteName2 ---> http://SiteName2.yourdomainname.com/
    SiteName3 ---> http://SiteName3.yourdomainname.com/

  • Setup Virtual Servers in IIS with WLS 8.1

    Hi,
    I have multiple virtual servers (using host headers) in my IIS 5.0 web server. I also created multiple server instances in WLS. Can anyone tell me how I can integrate this virtual servers to connect to WLS virtual servers via port 80.
    Would I have to create ini file for all virtual IIS servers.
    Thanks

    Hi,
    I have multiple virtual servers (using host headers) in my IIS 5.0 web server. I also created multiple server instances in WLS. Can anyone tell me how I can integrate this virtual servers to connect to WLS virtual servers via port 80.
    Would I have to create ini file for all virtual IIS servers.
    Thanks

  • SBS 2003 to Server 2013 migration - How many virtual Servers?

    Hi
    I need to replace our SBS2003 - we are about 10 users. We use it for:
    AD
    File/Print
    Exchange
    SQL
    WSUS
    Subversion
    TrendMicro WFBS
    Since there is no current follow up product I feel like I need to setup:
    Server 2012 R2
    Exchange 2013
    SQL Server 2012 Express
    I found inconsistent information on how many virtual servers I will need. Is it correct that in contrast to SBS I must have multiple (virtual) servers?
    What is best practice for this scenario (# of VM's, "what" goes best with "what", sizes ..)
    Thanks a lot for your help .. I have a very good knowledge about the SBS2003 but unfortunately not about the later Standard Server Versions.

    Well.. best practice would suggest,
    1 VM - DC
    1 VM - Exchange
    1 VM - SQL
    Reality though, suggests they may not be required.
    What do you 'need'?, is a better question.
    Can you move to hosted exchange?
    You can certainly use the Hosted Trend Micro AV product which removes the requirement to run a console on your server.
    Perhaps 2 VMs would be sufficient a DC, and a second to host your applications and WSUS.
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • Virtues of virtual servers ???

    Hi all: I am less than up-to-date on virtual machines in regards to OES servers. What are the benefits of running multiple VM servers on the same hardware rather than running one server natively with many services? On the one hand I can see efficiencies by keeping the hardware busy and that VM servers can be very specialized. On the other hand hardware failure can result in a world of hurt if all your VMs go down at once.
    Thanks, Chris.

    Chris wrote:
    > Thanks for the reply. Regarding hardware failure, I could use my current
    > configuration as a good example. We have 5 OES servers as a result of a
    > design decision made many years ago; have several servers, each doing one
    > or two things, so that if any one server goes down we don not loss all
    > network services. With this configuration, if one server suffers a
    > catastrophic failure (say a backplane fails) I can maintain most other
    > services.
    >
    > Now if I were to have one VM host running five VMs so that no one VM runs
    > more than one or two services, I have the same separation of services.
    > However, the difference being if my host now suffers a catastrophic
    > failure, I loss all the VMs and all services. I am not saying this is
    > likely, but it is something I would worry about.
    >
    > I do like the many other benefits of VMs pointed out in other thread
    > responses, and they many in fact out-weigh the downside.
    >
    >>>> KBOYLE<[email protected]> 2/19/2013 3:38 PM >>>
    > Chris wrote:
    >
    >> On the other hand hardware failure can result in a world of hurt if
    >> all your VMs go down at once.
    >
    > If you mean that you /could/ have multiple corrupted servers to repair,
    > then I would agree with you but proper backups should mitigate that
    > risk. Whether all your services are on a single physical server or
    > spread across multiple virtual servers, the result of a hardware
    > failure is essentially the same.
    >
    > Multiple virtual servers allow you to isolate servers/services and even
    > install mutually exclusive OES services on the same box.
    >
    > --
    > Kevin Boyle - Knowledge Partner
    > If you find this post helpful and are logged into the web interface,
    > show your appreciation and click on the star below...
    The only way to safely run vm's is to use High availability with a san. I
    have been doing so now for quite a while and would not turn back. I prefer
    to use a san for redundancy. It has been very reliable and using raw disks
    off the san for vm's I don't see the impact that see running say off of an
    ocfs disk with image files.
    Just my 2 cents.
    Rick

  • URL-Host-Based Virtual Servers

    Hi,
    I am trying to configure SJS-AS PE 8.1 to accomplish URL-Host-Based virtual servers as descibed in Example 3 of "Deploying Virtual Servers" in the document http://docs.sun.com/source/817-3652-10/agvirt.html (I know it's for v7, but it conceptually descibes exactly what I am trying to do).
    The document outlines the scenario perfectly, but gives no example of how exactly to configure the app server this way. My understanding from the admin guide is that a listener has to be unique on a port and address, so once I create it for 0.0.0.0:80, how can I assign it to multiple virtual servers?
    Can someone point me to some example showing how to configure the app server this way?
    Thanks
    Chris

    Yes. why are we able to use the same port 80 for several software virtual servers. and then when it comes to use https, we have to use different ports?
    Besides, please let me know if it is possible to use SSL with Software and not Hardware virtual servers. As if the Admin guide says it is only possible with hardware VS.
    Thank you.

  • Defining virtual servers using content-rules

    Can multiple virtual servers be "bound" to a single real server when all of the virtual servers have the same ip address and port, with the only difference between each virtual server being a unique content rule applied to each? (This is more of a migration issue, than a load-balance issue)

    I assume you are saying Web(HTTP) and the answer is yes.
    1. Your server should has name-based virtual hosting enabled if your server only use 1 IP address.
    2. In CSS, you can use single service for this server or use different services with different keepalive uri for each service.
    3. You can use a number of unique Content rules (same VIP, TCP 80 with different URLs) and add the service to it.
    Remarks: If you want to use unique Content rules, you should make them difference with URL, otherwise all the content rules are the same and you can't activate all.
    Another suggestion: If your server already support Name-VHOST, you can use just single L4 Content rule and all the traffic would be handled by that server (service).

  • Can I setup multiple SMTP servers / emails with one IMAP servers on the iPh

    All my email arrives at one place, on one IMAP server. However I have 2 email addresses, and need to use a different SMTP server for each one. How to setup this on the iPhone? This is what I considered so far:
    1. I don't see how to enter multiple addresses for the same account, and map each address to a SMTP server.
    2. If I create multiple accounts, I have to enter multiple IMAP server, and the iPhone doesn't let me enter the same IMAP server information for different accounts.
    3. I could create a second account with a dummy IMAP/POP server, and a real SMTP server. But then most likely if I respond to mails that arrive on my IMAP server (1st account), Mail will always use my 1st email address when responding. Instead I'd like it to automatically pick as From the To address of the mail I am responding to (as the desktop Mail.app does).
    Alex

    If you have multiple SMTP servers available, you can select from one of the available SMTP servers for a particular account.
    After you've entered the SMTP server for the first account when creating the 1st account and you've entered the SMTP server for a 2nd account when creating the 2nd account, you'll have both SMTP servers available to use with either or both accounts.

  • Can we create multiple admin servers in one one weblogic domain.

    Hi All,
    Can we create multiple admin servers in one one weblogic domain.
    if yes, please let me know.
    Thanks

    http://download.oracle.com/docs/cd/E21764_01/web.1111/e13716/toc.htm
    Not through the configuration wizard.
    To handle admin server availability (the admin server is not clusterable). This means that if the admin server goes
    down, you cannot administer your WebLogic Server domain until you bring it back up. In most cases, you may
    not be too concerned if the admin server goes down because all you need to do is restart it. If you use the node
    manager to start the admin server, the node manager can automatically restart a failed admin server just like it can any other server.
    What happens if the machine where the admin server runs fails in such a way that you cannot restart the admin server?
    The answer is simple if you prepare for this event. Proper operation of the admin server relies on several configuration files
    and any application files it controls. Typically, the best thing to do is to store the admin server's directory tree on a shared disk.
    As long as the configuration and application files are accessible, you can restart the admin server on another machine. It is up
    to you to make sure that you don't have more than one admin server running at a time. If the new machine can assume the
    original admin server's Listen Address (or if it was not set), you can simply start the admin server on the new machine without
    any configuration changes.
    Otherwise, you will need to change the admin server's Listen Address. Since the managed servers ping the admin server URL every
    10 seconds until it comes back up, you need to devise a way for the admin server URL to allow the managed server to find the restarted
    admin server on the new IP address. The easiest way to achieve that is using a DNS name that maps to both IP addresses, or better yet
    that is dynamically updated to point to the correct location of the admin server. If this is a graceful shutdown and migration, use the
    WebLogic Console to change the Listen Address just before shutting down the admin server. If not, you will need to edit the config.xml
    file by hand to replace the old Listen Address with the new one. Typically, it is recommended to plan ahead so that everything you need is
    already in place to make admin server failover as painless as possible.

  • How to configure one TREX host with multiple index servers ?

    Hi All,
    Does anyone know how to configure TREX on the one host,
    with multiple index servers ?
    Reason for this is to make better use of resources available on the host server(4 Gig, 4 Processor, Windows2003), to improve the search performance of
    our KM content for portal users.
    I am using TREX 7 and have not been able to do this,
    despite reading the Single and Distributed install
    documentation.
    Any help would be appreciated.
    Regards,
    Andres

    Hi Andres,
    To make use of the RAM a Server provides you have to run two indexserver processes (each can then consume 2 GB);
    Proceed like this:
    1. Go to TREXdeamon.ini; check if section [indexserver2] is there (it is already provided, but not active in standard installation)
    2. In TREXdeamon.ini go to
    [daemon]
    references sections below
    programs=nameserver,preprocessor1,indexserver1,queueserver,alertserver
    and add indexserver2 here. Restart TREX; second porcess is then started; can be checked in TREX monitor in Portal as well
    3. To distribute existing indexes to the new process, start TREXadmintool and go to Index: Landscape
    Go to the last two columns and move the indexes (move master here/secondary mouse click)
    If you don't distribute the indexes the new index server process will be regarded when an new index is created.
    Hope this helps!
    cheers
    Bettina

  • Issue on virtual servers on sun one web server

    Hi all,
    I configured sun webserver 6.1 sp8 on windows 2003 server
    I configured php,asp,jsp succesfully on different virtual servers.
    as
    www.abc.com:80
    www.php.com:2222
    www.asp.com:3333
    www.jsp.com:4444
    Now the issue is
    I want to run the applications by using url with out portno in the browser
    like www.php.com instead of www.php.com:2222
    my DNS is aware of the www.abc.com,www.php.com,asp.com,jsp.com
    From Internet I can access www.abc.com:80 as www.abc.com becoz it is running on port 80.
    If I type www.php.com it is directing to www.abc.com not to www.php.com:2222.
    In the host file under windows/system32/drivers/etc I added the following lines
    10.129.149.196 www.abc.com
    10.129.149.196 www.php.com
    10.129.149.196 www.asp.com
    10.129.149.196 www.jsp.com
    I want to run the applications without entering portno along with url in the browser.
    Can any one help me please.
    Thanks in advance

    Dear M.V,
    I choose one server(www.xyz.com) that is running on port 80,in its server.xml I added
    <VS id="https-pqr" connections="ls1" mime="mime1" aclids="acl1" urlhosts="www.pqr.com" state="on">
    <PROPERTY name="docroot" value="D:/Sun/WebServer6.1/docs"/>
    <USERDB id="default"/>
    <SEARCH>
    <WEBAPP uri="/search" path="D:/Sun/WebServer6.1/bin/https/webapps/search" enabled="true"/>
    </SEARCH>
    <WEBAPP uri="/" path="D:/Sun/WebServer6.1/https-pqr/webapps/https-pqr" enabled="true"/>
    </VS>
    which is of pqr virtual server that is running on port 3333
    Now with out port no ie, with www.pqr.com I am able to see the home page of application running on pqr virtual server.
    With this configuration I need to check at client environment
    If u find mistakes from the above configuration please let me know
    Thanks alot
    Bye

Maybe you are looking for

  • PDF forms and how they work with different Reader versions

    I'll start this off by giving a little background information and describing a workflow scenario. I work as an InHouse designer for a company that keeps the majority of the employee population always a few versions behind. Fortunately, for us designe

  • How do you do a quick transfer of data from one TX to another TX with different user name

    I have more than one TX and want to keep most of the information, addresses, media, calendar as well as third party software the same on all my TX's.  Is there a way to do this without the long hassle of exporting all that can be exported, and then i

  • Slow performance on Intel Mac a damaged disk?

    Hi, I'm experiencing very slow performance on my Intel Mac 216 Ghz core duo, with 2GB 667 MHz DDR2 SDRAM. Running OS 10.6.8. Have been experiencing reduced performance, can't use Entourage email or Chrome, Firefox browsers at the same time. Ran Utili

  • Lenovo Miix 2 8 Control panel freezes

    Santa recently brought me a fresh Lenovo Miix 2 8 (64 GB). It's been just fine until I realized I can't execute windows update at all. When I go to control panel and try to access windows update, it changes the topic in the control panel window, but

  • FI-LC:One simple question about Consolidation

    Hi.I'm a new one in FI-LC.Now I'm reading the SAP Library(Release 4.6C, March 2000).There are some word in the article of Consolidation (FI-LC)->Consolidated Entity: This and the following sections often refer to the Implementation Guide. Unless othe