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.
Advertisement
Advertisement