Menu
  • HOME
  • TAGS

Speed up global access to server (Apache, MySQL and Fileserver)

mysql,apache,latency,fileserver

For readonly web pages, have web servers and Slaves in all general locations (eg, 1+ in US, 1+ in Europe). Such pages will render promptly. If a web page needs to write, that is messier, since at least one "hop across the pond" is required for at least some of...

Configure an OWIN static file server at a specific route prefix

asp.net,owin,fileserver

You need to specify the RequestPath as well: var options = new FileServerOptions { EnableDirectoryBrowsing = true, FileSystem = fileSystem, RequestPath = PathString.FromUriComponent("/__underscore") }; As per your comment: If you're unable to download files, try to explicitly register OwinHttpHandler in your Web.Config: <system.webServer> <handlers> <add name="Owin" verb="" path="*" type="Microsoft.Owin.Host.SystemWeb.OwinHttpHandler, Microsoft.Owin.Host.SystemWeb"/>...

Measure file server performance [closed]

windows,performance,benchmarking,server,fileserver

Following is what I normally use, Win 7 is the same and I run Perfmon on the client and the server. There can be strange results due to caching and deferred writing. So, measure performance for a time after data transfer appears to be finished. Setting Up Performance Monitor This...

Why the image is getting corrupted uploaded to the FTP server using PHP?

php,file-upload,ftp,remote-server,fileserver

You should set the mode with ftp_put to be FTP_BINARY: ftp_put($conn_id, $remote_file, $file, FTP_BINARY); This is mandatory since ASCII mode checks whether the line endings differ on client/server (your case, since you are likely on windows and the server runs unix) and tries to convert them (\r\n ⇒ \n). In...

How to serve woff2 files from owin FileServer

mime-types,owin,font-awesome,fileserver,woff2

Two possibilities : Serve all kind of file types : var options = new FileServerOptions() { RequestPath = PathString.Empty, FileSystem = new PhysicalFileSystem(@"banana") }; options.StaticFileOptions.ServeUnknownFileTypes = true; app.UseFileServer(options); Add woff2 mime type : var options = new FileServerOptions() { RequestPath = PathString.Empty, FileSystem = new PhysicalFileSystem(@"banana") }; ((FileExtensionContentTypeProvider)options.StaticFileOptions.ContentTypeProvider) .Mappings.Add(".woff2", "application/font-woff2");...