Open tristan-k opened 9 years ago
Still having trouble with this.
Anyone?
@tristan-k You might need to set the content-type to text/html for the rewrite rule.
@kern Thanks! How do I do that? I followed an answer on stackoverflow, but it still downloads a file called download
. Any advice?
.htaccess
RewriteEngine On
RewriteCond %{HTTP:Accept} text/html [NC]
RewriteRule ^(.*) http://localhost:65150/$1 [P]
@tristan-k Since I am facing the same problem: did you ever resolved that issue?
@jan0e No I did not. I gave up.
I'm planning a full rewrite of this project fixing the WebTorrent connectivity issues, simplifying serving (which should hopefully fix this issue), using redux, and having an optional encryption password to prevent server operators from tapping into download streams. Will keep this thread updated with progress, especially on the serving component!
I'm using a shared-hoster which only allows ports between 61000 and 65535. For this reasons I want to redirect the port to the subdomain files.tristank.de. Normally this works great but for filepizza it just keeps downloading the index page as a file named
download
as soon as I browse to files.tristank.de. Accessing filepizza directly with tristank.de:65150 does work. Any suggestions?.htaccess
`<!DOCTYPE html>
FilePizza
Free peer-to-peer file transfers in your browser.
We never store anything. Files only served fresh.