S
S
Senture2022-02-01 19:34:24
Nginx
Senture, 2022-02-01 19:34:24

When using FastDL, a strange redirect occurs, what could be the reason?

There is a game server based on RAGE MP for GTA V RP.
It has the ability to specify a url for fastdl from which players can download game files (dlc) without straining the network of the main server.

There is a domain called rpkoma.com
there are 2 subdomains:
server1 - attached to the main server where the rage mp application is located server
fqdn - linux vds on which nginx for fastdl is

raised I raised it means nginx (fastDL) on debian, here are its settings:
61f95f840f279166294678.png

Now about the problem :
When I try to download files from fastdl through server1, the following redirect occurs at:
server1.rpkoma.com/file/1 : And if I try to download the same file directly, at: fqdn.rpkoma.com/file/1
61f9604e1396b564699142.png


It downloads the necessary file with the name 1.

What can this be connected with, who knows?
Thank you very much everyone!

PS I immediately apologize for the possibly stupid question on networks, but this is the first time I have come into this area, and I need to set it up as quickly as possible.

nginx config

user root;
worker_processes  1;

error_log  /var/log/nginx/error.log;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
    use epoll;
}

http {
    include       /etc/nginx/mime.types;

    access_log  /var/log/nginx/access.log;

    sendfile        on;
    tcp_nopush     on;
    keepalive_timeout  15;
    tcp_nodelay        on;
    #directio 5m;
    #expires max;

    #include /etc/nginx/conf.d/*.conf;
    #include /etc/nginx/sites-enabled/*;

    server {
        listen 80;
        listen [::]:80;
  
  root /var/www/rpkoma;        
  
  index index.html index.htm index.nginx-debian.html;
  
   access_log /var/log/nginx/cache_acces;

  #server_name server1.rpkoma.com;
  #server_name fqdn.rpkoma.com 127.0.0.1 server1.rpkoma.com;	
  server_name 127.0.0.1;

  location / {
                autoindex on;
        }
     }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question