Menu

Virtual hosts

Help
2006-08-08
2012-11-16
  • Evert Meulie

    Evert Meulie - 2006-08-08

    Hi all!

    http://gofish.sourceforge.net/vhosts.html mentions that virtual hosts are supported in Gofish, but it is unclear whether this applies both to Gopher & WWW.

    I have enabled virtual hosts, but when I go to gopher://subdir1.domain.com/ I still get the same as when going to gopher://domain.com/

    How do I get virtual hosts working correctly?

    Regards,
      Evert

     
    • Sean MacLennan

      Sean MacLennan - 2006-08-08

      Virtual hosts only apply to the web side of GoFish. Unfortunately, there is not enough information in a Gopher request to support virtual hosts.

      Sorry for not making that clear.

      /Sean

       
    • Evert Meulie

      Evert Meulie - 2006-08-08

      Is there any way for me to have 2 Gopher servers on 1 machine/IP? I would like gopher://1.domain.com/ show something different than gopher://2.domain.com/

      Perhaps with 2 instances of gofish?

      Regards,
        Evert

       
      • Sean MacLennan

        Sean MacLennan - 2006-08-09

        No, I can't think of any way. By the time the request hits the server, the host has been stripped off. You can get the IP, but you cannot differentiate virtual hosts.

        HTTP 1.1 can do it because you are required to pass the host as part of the header.

        The only thing you can do is have seperate ports, or seperate IPs. i.e.:

        gopher://domain.com:70/ and gopher://domain.com:71/

        /Sean

        However, I do not think IE lets you use any port other than 70.

         

Log in to post a comment.

MongoDB Logo MongoDB