Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Nginx proxy and bandwidth
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Nginx proxy and bandwidth

MedowMedow Member

Hello all:

I have setup an nginx proxy to pass the website request to anther hidden IP.

My end user domain is http://domain.com and the hidden domain is http://hiddendomain.com (for example).

If i host a large file on the hidden domain (let us say it is 10Gb).

And my visitor access that file using this URL http://domain.com/10gbfile.zip and the proxy server surf that file from the hidden domain to the visitor.

My question is:

which host handel that 10Gb bandwidth? the one that host the end user domain http://domain.com or the hidden domain http://hiddendomain.com .

I ask that question because i need to measure how much bandwidth and resource i need to allocate for each domain.

Thanks.

Comments

  • MasonRMasonR Community Contributor
    edited August 2018

    Short answer: both

    Also worth noting your nginx proxy will process twice the bandwidth of the proxied service since it'll have to first download the file from the proxied service (10gb download in this case), then transfer the file to the end user (10gb upload).

    Thanked by 2opsflops pullangcubo
  • MedowMedow Member
    edited August 2018

    @MasonR said:
    Short answer: both

    Also worth noting your nginx proxy will process twice the bandwidth of the proxied service since it'll have to first download the file from the proxied service (10gb download in this case), then transfer the file to the end user (10gb upload).

    Thanks for reply.

    That indeed a lot of bandwidth .

    Do you have some trick to hide my real file location from visitors?

  • MasonRMasonR Community Contributor

    @Medow said:
    Do you have some trick to hide my real file location from visitors?

    Just using Cloudflare as a proxy should be sufficient

  • Are the proxy server and the hidden server located in the same data center? In most datacenters, internal traffic between two servers are free. If that's the case, you only pay the 10g output transfer from the proxy.

  • @MasonR said:

    @Medow said:
    Do you have some trick to hide my real file location from visitors?

    Just using Cloudflare as a proxy should be sufficient

    I will have a look to it.

  • @Harzem said:
    Are the proxy server and the hidden server located in the same data center? In most datacenters, internal traffic between two servers are free. If that's the case, you only pay the 10g output transfer from the proxy.

    No, both are from diffrenet location, so the internal traffic is not possible.

  • Mr_TomMr_Tom Member, Host Rep

    @Medow said:

    @Harzem said:
    Are the proxy server and the hidden server located in the same data center? In most datacenters, internal traffic between two servers are free. If that's the case, you only pay the 10g output transfer from the proxy.

    No, both are from diffrenet location, so the internal traffic is not possible.

    Same provider? As some count this as "internal". If different providers then definitely not.

  • @Mr_Tom said:

    No, both are from diffrenet location, so the internal traffic is not possible.

    Same provider? As some count this as "internal". If different providers then definitely not.

    Yeah that's what I tried to say, sorry for the confusion.

  • @Mr_Tom said:

    @Medow said:

    @Harzem said:
    Are the proxy server and the hidden server located in the same data center? In most datacenters, internal traffic between two servers are free. If that's the case, you only pay the 10g output transfer from the proxy.

    No, both are from diffrenet location, so the internal traffic is not possible.

    Same provider? As some count this as "internal". If different providers then definitely not.

    Unfortunately no.

    I store on the hidden website some files which it may have some DMCA issue.

    And those files are large enough and i will not be able to upload them again.

    So i thought if i make a front end website to surf those files then it will be easy to change the end website to any provider when i have too many DMCA issues and keep my files save because they are hidden.

    So , both hosting shouldn't be linked to each other.

  • You can set up nginx as a reverse proxy cache so that http://hiddendomain.com will only need to "get" the file once (depending on how long you set the cache).

    Of course, that also means that you need to have enough disk space in http://domain.com to hold the cache files (since you mentioned they are large in terms of file sizes).

Sign In or Register to comment.