Archives

vBulletin: attachments downloads optimization using vb-accelerator

On 21.03.2012, in supportex.net-blog, by Oleksii Tykhonov
0

By default vBulletin uses PHP to deal with attachment downloads. It means that to provide a file from forum attachments to a user PHP process reads it and then starts to output it. This would work OK if you don’t have too much users. But if you do, attachments downloads from PHP could become one of [...]

Apache: getting remote IP when working behind nginx

On 06.03.2012, in supportex.net-blog, by Oleksii Tykhonov
0

Sometimes you may want to use Apache behind nginx. In this case nginx works as reverse proxy and handles user connections and static files. And Apache generates dynamic content (for instance, with use of PHP). In this case remote IP in your scripts would be 127.0.0.1 since Apache gets requests from the same server. It [...]

nginx: Using fcgiwrap for CGI applications deployment

On 19.01.2012, in supportex.net-blog, by Oleksii Tykhonov
0

From the box nginx doesn’t support CGI applications deployment since CGI is very old and poor performance way to run them. But some applications still should be deployed with use of CGI (earlier, we covered setup of Nagios and OTRS with nginx). Here is another way to do that. In this case we will use [...]

Nginx: embedding Lua into webserver

On 30.09.2011, in supportex.net-blog, by Oleksii Tykhonov
0

Lua is a tiny but powerful programming language. Due to its small memory footprint (about hundreds of kilobytes) it’s widely used in application which need to be extended with more complex logic. For instance, Salvatore Sanfilippo has published a  post describing how you can use power of Lua with Redis. It also applied to nginx, [...]