Skip to content

Downloaded files appear as 0 bytes. #6416

Closed Answered by debpolaris
debpolaris asked this question in Issues
Discussion options

You must be logged in to vote

I solved this problem.

*SUMMARY
Add this line in Caddyfile, "rewrite /devicefile.ashx /meshcentral{path}".
CAUTION) You need to change "meshcentral" as you want to configure.

My Caddyfile:

### Your site's domain name
its.mysite.com

### Templates give static sites some dynamic features
templates

### Compress responses according to Accept-Encoding headers
#encode zstd gzip

### Serve everything else from the file system
root * /home/mysite/www
php_fastcgi unix//var/run/php-fpm/www.sock
file_server browse


########## START: MeshCentral ##########
rewrite /devicefile.ashx /meshcentral{path}
redir /meshcentral /meshcentral/
route /meshcentral/* {
   reverse_proxy http://10.0.0.231:8443 {
  …

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@si458
Comment options

@si458
Comment options

@debpolaris
Comment options

@si458
Comment options

@debpolaris
Comment options

Comment options

You must be logged in to vote
1 reply
@si458
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by debpolaris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Issues
Labels
None yet
2 participants