2015

httpd, nginx, Python, Tips & Guides, Web Server

Python code: List most popular URL from Apache/NGINX ‘access.log’ file

Found a great Python code snippet for listing the most popular URL from Apache / NGINX ‘access.log’ file. Very practical! import collections logfile = open(“access.log”, “r”) clean_log=[] for line in logfile: try: # copy the URLS to an empty list. # We get the part between GET and HTTP clean_log.append(line[line.index(“GET”)+4:line.index(“HTTP”)]) except: pass counter = collections.Counter(clean_log) […]

Internet Stuff

Using a new Google API or Service? It might not last long…

I read an interesting analysis on the lifespan of some of the Google service and API that has been cancelled: http://www.theguardian.com/technology/2013/mar/22/google-keep-services-closed Based on the analysis at the time of the writing, Google service has a mean lifespan of 1,459 days. An interesting point to ponder, especially if your applications/services depends on one or more Google […]

Funny Stuff, Internet Stuff

What ever happened to 1Malaysia Email – Tricubes, Pemandu, anyone??

What ever happened to 1Malaysia email, a project that said to be valued at 5.3 milions (MAVcap funding) ? Source: The Star Official email account for each Malaysian adult Pemandu: Communications Content & Infrastructure The Next Web: Malaysia’s new “official” email address for each citizen will also offer biometric USB device The 1Malaysia email is […]

httpd, nginx, Server, Ubuntu/Debian

How to test if PageSpeed module is running (on NGINX)

You can run a simple test using curl to verify whether the PageSpeed module is running or not on NGINX. curl -I -X GET {ip addresss | web address} curl -I -X GET 192.168.1.47 The output would come out something like this… You will see “X-Page-Speed” header with its version (in my case its “1.9.32.4-7251“) […]

httpd, nginx, Open Source, Server, Tips & Guides, Ubuntu/Debian

How to install NGINX with PageSpeed module in Ubuntu LTS / Debian

UPDATE: You can now install NGINX with PageSpeed in Ubuntu LTS with deb package: https://blog.mypapit.net/2015/08/install-nginx-with-pagespeed-using-deb-for-ubuntu-lts-amd64.html INSTALLING NGINX USING UBUNTU APT-GET SOURCE PageSpeed modules are open source modules developed by Google Inc that can perform website optimization to ensure faster site delivery, automatically. PageSpeed module is not included in NGINX installation in Ubuntu or Debian. So […]

Scroll to Top