Browsing articles tagged with "staticcontent - Admins Goodies"
May 5, 2012
tom

Ngix vs G-WAN for static content?

Can someone point me to recent benchmarks on the two? Also more info about G-WAN would be nice, since up until now I never heard about it. I need the fastest server for static files. Asked by ilija139 This link states that G-WAN can scale better than nginx and it can benefit more from multi-core CPUs and uses less resources. You can have a look at the architecture and performance sections. In my opinion, I […]

Continue Reading »
May 4, 2012
tom

IIS 7 – Static Resource Or HttpHandler

This is probably a fundamental question concerning IIS 7. I currently have a website running on IIS 7 on my local machine. I’ve noticed that when I type in a URL of the form http://localhost/styles/default.css, my web browser will open up the css file in notepad. However, if I use an imaginary nonexistant file extension, IIS tries to hand off the request to my website, which happens to be an asp.net mvc application. Because the […]

Continue Reading »
Apr 15, 2012
tom

Apache ProxyPass ignore static files

Having an issue with Apache front server connecting to a Jetty application server. I thought that ProxyPass ! in a location block was supposed to NOT pass on processing to the application server, but for some reason that is not happening in my case, Jetty shows a 404 on the missing statics (js, css, etc.) Here’s my Apache (v 2.4, BTW) virtual host block: DocumentRoot /path/to/foo ServerName foo.com ServerAdmin webmaster@foo.com RewriteEngine On <Directory /path/to/foo> AllowOverride […]

Continue Reading »
Nov 20, 2011
tom

nginx hackery : change image file every X request

Let me describe what I am trying to do first. I have a bunch of pictures in a directory called /images/*.(jpg|gif|png|blah blah|) Now say these images are embedded in an html page and I dont really care which image or where its embedded. For every 10th request for the same picture file (if possible) or for any picture I want to display a fixed image (e.g. trollface.jpg). thats it! I have searched around a bit […]

Continue Reading »
Aug 24, 2011
tom

Multiple web servers serving same static content

I created a sub-domain for static content to be able to serve it more efficiently by several load-balanced web servers. This static content is updated automatically, at a rate of ~1k files/day. Right now I use rsync to update the servers in a master/slave way but since the content has a growing number of 100k+ files, it takes more and more time and puts an increasing I/O load on both the master and the slaves. […]

Continue Reading »
Aug 24, 2011
tom

Media Server Stack

What would be, software wise, a good Stack to use for a media server, considering the Ubuntu OS (8.10 up)? This is supposed to serve large QuickTime video files (.mov) with > 100Mb in average. We expect the traffic to be high. And, even though total traffic (as in Gb served per month) is not a problem, bandwidth may be (as in Mbits/s). What are good tips to assemble such a stack? I considered using […]

Continue Reading »
Aug 23, 2011
tom

Optimum way to serve 70,000 static files (jpg)?

I need to serve around 70,000 static files (jpg) using nginx. Should I dump them all in a single directory, or is there a better (efficient) way ? Since the filenames are numeric, I considered having a directory structure like: xxx/xxxx/xxx The OS is CentOS 5.1 Benchmark, benchmark, benchmark! You’ll probably find no significant difference between the two options, meaning that your time is better spent on other problems. If you do benchmark and find […]

Continue Reading »
Aug 22, 2011
tom

IIS7 returns blank when static content requested

I am trying to configure a demo machine which is EEEPC with Windows 7 Home Premium edition all the drivers properly loaded (don’t ask me why it’s Home edition) with IIS7 installed. I’ve deploy the application to be demo-ed on the machine which is an ASP.NET MVC site, added website via the console, added an app pool. The app pool run as NetworkService and guest authenticate as IUSR. I’ve added modify rights to NetworkService and […]

Continue Reading »
Aug 19, 2011
tom

How static content is handled in an asp.net application?

I have a website that i use as a “content server” for other websites So, the home page, an asp.net cms, receives 25 visits/month, while the /static/ folder receives hundreds of requests/minute 24/7 Will the asp.net application be loaded forever in the app-pool, or, since only the /static/ is accessed, the asp.net code is not loaded in the app-pool? Because it would be a little bit waste of ram to have it loaded forever to […]

Continue Reading »
Aug 18, 2011
tom

Etag configuration with multiple apache servers or CDN / How does Google do ETags?

I have an application which is served from two apache2 servers and I want to configure the ETags on static content. In the future I would also like to use a CDN. I see that this is supposed to be a problem because the Etag information will be different from server to server… The ETag format for Apache 1.3 and 2.x is inode-size-timestamp. Although a given file may reside in the same directory across multiple […]

Continue Reading »
Pages:123»