Results 1 to 9 of 9
  1. #1
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41

    How to deploy on a web hosting service ?

    I'm going to host my website on a Web host service.
    Should i ask them to register for 1 domain (www.mycompany.com) or for 2 domains (www.mycompany.com and push.mycompany.com) ?
    Should they configure their dns to make this (those) urls point to the public ip ?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    In order to be able to use standard HTTP ports (80) for both your Web Server and your Lightstreamer Server, you should register two hostnames, e.g.: www.mycompany.com and push.mycompany.com.

    This implies you should use two different public IP addresses for the two servers. In case you are using one physical machine for the two servers, you will need two network cards or two virtual machines.

  3. #3
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41
    In my case, i have the 2 servers (tomcat:80 and lightstreamer:8081) on the same machine.
    is there any additional configuration i have to make ? (in addition to having 2 network cards)

    And why do i need 2 network cards ?
    use standard HTTP ports (80) for both your Web Server and your Lightstreamer Server
    Does that mean that the 2 servers MUST use the same port (80) ?

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    No, the 2 server must not necessarily use the same port, but it is recommended, as there are many corporate firewalls out there preventing any ports other than 80 and 443 to be accessed. So, if you want the maximum accessibility for your application, you should avoid using non-standard ports, like 8081.

    If you decide to go for two different ports, then you don't need two network cards, you don't need two public IP addresses, and you don't need two different hostnames.

  5. #5
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41
    If you decide to go for two different ports, then you don't need two network cards, you don't need two public IP addresses, and you don't need two different hostnames.
    So 2 different ports, 1 network card, 1 public address.
    In this case, i have to register for 1 domain ? (www.mycompany.com)
    So what to do with the other ? (push.mycompany.com)

  6. #6
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    In that case you don't need to register push.mycompany.com.

  7. #7
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41
    What should i put in setDomain(), setLSHost(), and setLSPort() ?

  8. #8
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    setDomain: mycompany.com
    setLSHost: www.mycompany.com
    setLSPort: 8081

  9. #9
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41
    Many thanks to you

 

 

Similar Threads

  1. hosting helloworld example on different webserver
    By rbg001 in forum Client SDKs
    Replies: 3
    Last Post: May 25th, 2011, 03:11 PM
  2. How to deploy on an external Web Server?
    By AndyKelly in forum Client SDKs
    Replies: 1
    Last Post: July 7th, 2010, 11:50 AM
  3. How to deploy on an external Web Server?
    By AndyKelly in forum Adapter SDKs
    Replies: 0
    Last Post: July 6th, 2010, 11:34 AM
  4. How to deploy the PortfolioDemo example
    By minhphan200677 in forum General
    Replies: 1
    Last Post: April 11th, 2008, 12:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:06 PM.