logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Need Help Getting Apache To Download Maps To Game Clients
Author
buckwild



Joined: 28 Jul 2013
Posts: 2
Location: Churchville, NY

PostPosted: Sun 28 Jul '13 19:16    Post subject: Need Help Getting Apache To Download Maps To Game Clients Reply with quote

Apache2.2
Windows7 x86
Enemy Territory Gameserver

Hello,
Does anyone have experience setting up apache to redirect custom map download requests ingame? And download the file? I assume a module will be needed to listen and send to Apache. I have a quake3 engine gameserver on my computer
(Windows) that downloads maps to clients as needed, But downloads are hard-wired at 20 kb/second.
It takes about 5 Minutes for a download to complete(Too slow).
All the help I've found on web is how to redirect document download requests to new URL and changing root:
In particular, if you are creating an Alias to a directory outside of your DocumentRoot, you may need to explicitly permit access to the target directory.
Example:

Alias /image /ftp/pub/image
<Directory /ftp/pub/image>
Order allow,deny
Allow from all
</Directory>
[path?]...

The game accepts URL for download redirect. I'm looking for way to change document root to include map files. I realize that this is very complex,
But I know this can be done with Apache. My game friend was Network Specialist with Polish service. He rented root server and got Apache to download maps in Linux, But I'm using Win7, And I've lost contact with My learned friend. Please help if You've done this before.
I'm a complete beginner with Apache.
Thanks! Buckwild
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 29 Jul '13 2:35    Post subject: Reply with quote

Gameserver
Open the et.server.cfg file and edit these values:
Code:
set sv_wwwDownload "1"
set sv_wwwBaseURL "http://your-ip-or-domain-name/etfiles"
set sv_wwwCheckPath ""
set sv_wwwDLDisconnected "0"
set sv_wwwFallbackURL ""

NOTE: The wwwBaseURL address does NOT end with a "/".

Apache
Code:
Alias /etfiles c:/path/to/folder-full-of-maps
<Directory "c:/path/to/folder-full-of-maps">
Order allow,deny
Allow from all
</Directory>


I wish they had put this feature in Quake 3, it would have been quite handy!
Back to top
buckwild



Joined: 28 Jul 2013
Posts: 2
Location: Churchville, NY

PostPosted: Tue 30 Jul '13 3:39    Post subject: Reply with quote

Thank You! I know how to config the gameserver.

What I need is help with Apache.

I had Apache installed but removed it.

Then, I couldn't install, Service in windows

wouldn't start. When I finally got Apache installed,

I just put gamefiles into documentroot and edited My

httpd.config file. Couldn't bind 2nd listen IP to

socket so I set: 0.0.0.0:80. My redirect URL is web

IP. I had to set sv_wwwDownload "1" in gameserver

config. Fileserver works now!
Back to top


Reply to topic   Topic: Need Help Getting Apache To Download Maps To Game Clients View previous topic :: View next topic
Post new topic   Forum Index -> Apache