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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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
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.