Hello,
I add custom mod on my server.
But mu fastdl don’t work.
"seta sv_wwwDownload “1” // enable download redirection
seta sv_wwwBaseURL “mydomain” // defines url to download from
set sv_allowdownload “1”
seta sv_wwwDlDisconnected “0"”
wwwbaseurl is complete like this
set sv_wwwbaseurl “http://www.xxxx.com” i x ed out my domain but I think it should give you the idea
i have no idea if the seta you use will work or not
all of mine use set not seta
set sv_allowdownload “1”
set sv_wwwDownload “1”
set sv_wwwbaseurl “http://www.xxxx.com” (domain x ed out for post
set sv_wwwDlDisconnected “0”
set dedicated “2” // 0 = Listen, 1 = LAN, 2 = Internet ( you probably want 2 )
server {
listen 80;
listen [::]:80;
server_name <your.domain.here>;
root <your/cod4/root/directory/here>;
location / {
# try to serve file directly, fallback to front controller
deny all;
}
location ~* "\.(ff|iwd)$" {
# Just allow the .ff and .iwd files to download from the server
allow all;
}
#location ~ "/$" {
# This setting you can browse the files in the browser, I turned off.
#autoindex on;
#}
error_log /var/log/nginx/fastdl_error.log;
access_log /var/log/nginx/fastdl_access.log;
}
You might need to adjust some permissions on the cod4 directory to be able to work, but should work.
Modify the relevant fields what need to be, and test it.
set sv_wwwDownload "1" // enable download redirection
set sv_wwwBaseURL "http://xxxxxx.pl/cod4" // defines url to download from
set sv_allowdownload "1"
set sv_wwwDlDisconnected "0"
And this on vhost config:
location ~ /cod4 {
allow all;
}
location ~* "\.(ff|iwd)$" {
# Just allow the .ff and .iwd files to download from the server
allow all;
}
But still doesn’t work
And when i go in http link i’ve got 404 error.
set sv_wwwDownload "1" // enable download redirection
set sv_wwwBaseURL "http://Your IP address/download" // defines url to download from
set sv_allowdownload "1"
set sv_wwwDlDisconnected "0"