AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HL1 Servers (HLDS) (https://forums.alliedmods.net/forumdisplay.php?f=131)
-   -   sv_downloadurl for cs:cz (https://forums.alliedmods.net/showthread.php?t=311300)

Skovbo 10-12-2018 12:12

sv_downloadurl for cs:cz
 
Hello

I've bought a domain and hope to use it with sv_downloadurl on my server for improved performance..

So far is what i did:
Made a folder in "public_html" on the webserver
then made a folder with all the custom maps, sounds etc. so the webserver looked like this:
public_html/czero/*
*maps/aim_ak_colt
*models/backweapons.mdl
*sound/misc

As you can see i only added the custom files, as i think other files are already in the connecting players folder.

In the server.cfg file for the server i added these cvars
sv_downloadurl “http://www.XXXX.XX/czero/”
sv_allowdownload 1
sv_allowupload 1

But it seems to me that the files are still fetched from the actual game server and not the downloadurl...

Does someone see any errors in my doing?

ghostofmybrain 10-12-2018 12:43

Re: sv_downloadurl for cs:cz
 
If you go to http://www.XXX.XX/czero/ in a web browser, do you see all the folders you created? And can you download maps directly from the website?

Skovbo 10-12-2018 13:00

Re: sv_downloadurl for cs:cz
 
Shows "Forbidden You don't have permission to access /czero/ on this server."

EDIT:

I can however, download the files by typing the full directory... maps, sounds etc. downloads in chrome

ghostofmybrain 10-12-2018 15:32

Re: sv_downloadurl for cs:cz
 
If you have forbidden, no access, I would assume your web server isn't set up correctly and that's why the downloads are failing. I don't think it matters that you can download the file directly - the server is going to first try accessing /czero/ and then finding the file that way. If it can't access /czero/ it will give up.

tarsisd2 10-12-2018 16:05

Re: sv_downloadurl for cs:cz
 
you can set czero folder permission to 755 on ftp, or ask your provider to add to you

Skovbo 10-12-2018 16:30

Re: sv_downloadurl for cs:cz
 
Quote:

Originally Posted by tarsisd2 (Post 2619405)
you can set czero folder permission to 755 on ftp, or ask your provider to add to you

Ok, i will try that.

Skovbo 10-18-2018 05:27

Re: sv_downloadurl for cs:cz
 
Got it working,
Needed a .htaccess file in /czero/ directory with "Options +Indexes" written into it.
My provider had directory listing disabled by default.. hence the "Options +Indexes"

DeteCT0R 10-18-2018 06:47

Re: sv_downloadurl for cs:cz
 
If you need there is my .htaccess file ( this is for svencoop but work with all hl engine i think)

PHP Code:

Options +Indexes

order allow
,deny
<Files "\.(bsp|mdl|spr|wav|mp3|wad|bmp|tga|txt|res|nrp|nod)$">
   
allow from all
</Files

Its enable only some file to download ( map, sounds etc)

Skovbo 10-18-2018 07:14

Re: sv_downloadurl for cs:cz
 
Quote:

Originally Posted by DeteCT0R (Post 2620186)
If you need there is my .htaccess file ( this is for svencoop but work with all hl engine i think)

PHP Code:

Options +Indexes

order allow
,deny
<Files "\.(bsp|mdl|spr|wav|mp3|wad|bmp|tga|txt|res|nrp|nod)$">
   
allow from all
</Files

Its enable only some file to download ( map, sounds etc)

Thanks, however i only have the required files, so no need for that :)

fysiks 10-19-2018 22:47

Re: sv_downloadurl for cs:cz
 
Options +Indexes is not required for fast download. I'm not sure why that would make it work. The Forbidden page that you were getting was only for the index.html page (that doesn't exist) but all files should still be accessible when directly reference (which they are in fast download).


All times are GMT -4. The time now is 17:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.