Raised This Month: $404 Target: $400
 101% 

sv_downloadurl for cs:cz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Skovbo
Junior Member
Join Date: Jan 2012
Old 10-12-2018 , 12:12   sv_downloadurl for cs:cz
Reply With Quote #1

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?
Skovbo is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 10-12-2018 , 12:43   Re: sv_downloadurl for cs:cz
Reply With Quote #2

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?
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
Skovbo
Junior Member
Join Date: Jan 2012
Old 10-12-2018 , 13:00   Re: sv_downloadurl for cs:cz
Reply With Quote #3

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

Last edited by Skovbo; 10-12-2018 at 13:01.
Skovbo is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 10-12-2018 , 15:32   Re: sv_downloadurl for cs:cz
Reply With Quote #4

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.
__________________
Boycott ESEA
My servers

Last edited by ghostofmybrain; 10-12-2018 at 15:32.
ghostofmybrain is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 10-12-2018 , 16:05   Re: sv_downloadurl for cs:cz
Reply With Quote #5

you can set czero folder permission to 755 on ftp, or ask your provider to add to you
tarsisd2 is offline
Skovbo
Junior Member
Join Date: Jan 2012
Old 10-12-2018 , 16:30   Re: sv_downloadurl for cs:cz
Reply With Quote #6

Quote:
Originally Posted by tarsisd2 View Post
you can set czero folder permission to 755 on ftp, or ask your provider to add to you
Ok, i will try that.
Skovbo is offline
Skovbo
Junior Member
Join Date: Jan 2012
Old 10-18-2018 , 05:27   Re: sv_downloadurl for cs:cz
Reply With Quote #7

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"
Skovbo is offline
DeteCT0R
Junior Member
Join Date: Jun 2012
Location: My Home
Old 10-18-2018 , 06:47   Re: sv_downloadurl for cs:cz
Reply With Quote #8

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)
__________________
My steam:
DeteCT0R is offline
Skovbo
Junior Member
Join Date: Jan 2012
Old 10-18-2018 , 07:14   Re: sv_downloadurl for cs:cz
Reply With Quote #9

Quote:
Originally Posted by DeteCT0R View Post
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
Skovbo is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-19-2018 , 22:47   Re: sv_downloadurl for cs:cz
Reply With Quote #10

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).
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:41.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode