Urban Terror Forums: Download maps with ssl - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Download maps with ssl Rate Topic: ****- 1 Votes

#11 User is offline   isopropanol Icon

  • Account: isopropanol
  • Joined: 08-February 14
  • Posts: 12

Posted 22 May 2019 - 02:04 AM

If your server is on linux and the client is on linux it will download from an https URL just fine.
Users on windows, however will get an Invalid protocol 0 error.
If you tell the server.cfg to download from http (which will work from a browser) but gives windows users an error 301 message it's because your site is configured to try to redirect users to https.

To fix this you need to tell the server to NOT redirect if the URL is to download a map.

In apache2 edit your config file, for example /etc/apache2/sites-enabled/000-default.conf
NOTE: you probably need to edit as sudo
go to the bottom, you'll find something like this:

RewriteEngine on
RewriteCond %{SERVER_NAME} =<<YOURSERVERNAME>>
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

where <<YOURSERVERNAME>> is your site

add a line just below RewriteEngine on
RewriteRule (q3ut4)($|/) - [L]

so it now should look like this

RewriteEngine on
RewriteRule (q3ut4)($|/) - [L]
RewriteCond %{SERVER_NAME} =<<YOURSERVERNAME>>
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Assuming you're not hosting a whole lot of urls that contain the character combination "q3ut4" that should allow UrT to download over http and the rest of your site to redirect to https.

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2019 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942