tor2web / Tor2web

Tor2web is an HTTP proxy software that enables access to Tor Hidden Services by mean of common web browsers
https://www.tor2web.org
GNU Affero General Public License v3.0
705 stars 176 forks source link

want to specify a list of multiple base_hosts #201

Closed virgil closed 9 years ago

virgil commented 9 years ago

Would help diagnose problems to give each backend instance a unique basehost that only it responds to.

evilaliv3 commented 9 years ago

can you explain better with some examples?

virgil commented 9 years ago

I want to give each server a unique identifier as well as the global identifier. e.g.,

basehosts= [onion.city, www2.onion.city]

and then another machine would have: basehosts= [onion.city, www3.onion.city]

this would allow me to specify that a request go through a particular machine by specifying wwwX.onion.city

evilaliv3 commented 9 years ago

ok but can you clarify me the use case? i see various issues here: 1) onion.city, www2.onion.city mixing two similar regexp that will match together can cause problems 2) adding multiple patterns make the system slower.

if you can clarify with a real world scenario that would benefit of this? this way i can try to think to a solution for this.

i dont get an example in wich you prefer you have the need that a server is configured for two basehosts for example as a dns can do this kind of round robin making the user reuse the same secondary dns.

virgil commented 9 years ago

for now close the ticket. I've found other ways to achieve what I needed. just get the iframe thing. that's what really matters.

-V

On Sunday, February 8, 2015, Giovanni Pellerano notifications@github.com wrote:

ok but can you clarify me the use case? i see various issues here: 1) onion.city, www2.onion.city mixing two similar regexp that will match together can cause problems 2) adding multiple patterns make the system slower.

if you can clarify with a real world scenario that would benefit of this? this way i can try to think to a solution for this.

i dont get an example in wich you prefer you have the need that a server is configured for two basehosts for example as a dns can do this kind of round robin making the user reuse the same secondary dns.

— Reply to this email directly or view it on GitHub https://github.com/globaleaks/Tor2web-3.0/issues/201#issuecomment-73438065 .