Results 1 to 5 of 5

Thread: Can somebody please help me getting virtual servers on webserver to work?

  1. #1
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,477

    Default Can somebody please help me getting virtual servers on webserver to work?

    I really need this because I have two parts of my house, one that's rented out and one that we live in. Both have heat and audio control, but I have not yet been able to let the renters use a webpage to control it since I can't figure out how to separate them easily, with an URL that goes directly to the correct page, not one start page where you have to go to the correct page for the part of the house. To test it I have created a file named C:\Program Files (x86)\Promixis\Girder51\plugins\webserver\hosts.tx t and it contains these lines:

    Code:
    192.168.0.100=D:\Girder\Webserver1
    127.0.0.1=D:\Girder\Webserver2
    In the webserver config I have D:\Girder\Webserver1 as the directory. But that's all I get to no matter what IP i use (I'm of course testing it locally for the 127.0.0.1 to work). I have been reading both the manual and an old thread:

    https://www.promixis.com/forums/show...al-ip-adresses

    In there Ron says:

    Quote Originally Posted by Ron View Post
    ...you can do virtualhosts like this:

    Code:
    chrome=c:\devel\girder\trunk\girder4\httpd
    127.0.0.1=c:\devel
    192.168.2.200=c:\windows
    The parser is quite picky so make sure you end with one endline for this to work. And also adjust to your own names and IP addresses.
    From what I can see there my setup really should be working. I don't get the part about one endline, but I have tried both with an empty line and without one. Or is endline in this respect something else? Can it be that the hosts.txt file should be in another place? Or is there anything else I can try? I really need this to work to give my renters acces, so can somebody please take pity in me?
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

  2. #2
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    I'm not sure, but it seems to me the webserver responds based on the `Host` header of the request, so make sure your request has one. This is a bit hard to test from the browser, since it won't let you add the header manually.

    So from the system that hosts the webserver, if you use a browser and goto `http://127.0.0.1/` then the browser would set the host header to `127.0.0.1` and you should end up on `D:\Girder\Webserver2`

    From any other system in your network you can point the browser to `http://192.168.0.100/`(assuming your webserver is reachable on 192.168.0.100). The browser will now set the host header to `192.168.0.100` and you should end up on `D:\Girder\Webserver1`
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  3. #3
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,477

    Default

    THanks for answering! is there any way to see what host header a request has in Girder?
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

  4. #4
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    I wouldn't know. But to craft a request with a custom host header you could use Postman; https://www.getpostman.com/apps
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  5. #5
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,477

    Default

    Thanks! I'll check that out.
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •