Web Server

httpd, Web Server

Bash code for analyzing web server traffic to determine which ip accessed the web server the most

This handy script is useful for webserver traffic analysis task. It can be use to detect abusive IP address or spambots which accesses the webserver. ystem administrators can utilize the generated list of IP addresses to enhance webserver security by blocking those IPs deemed potentially harmful or suspicious.

httpd, nginx, Open Source, Tips & Guides, Web Server

Configuration to run OJS 3 smoothly behind nginx reverse proxy

A lot of people struggling in configuring PKP Open Journal System 3 (OJS3) to run behind nginx reverse proxy as OJS3 does not support nginx natively So most implementation would settle with Apache HTTPD server or install it behind nginx reverse proxy. However the problem is that the OJS3 behave badly when placed behind nginx […]

General, httpd, nginx, Web Server

Check if your web server supports Brotli Compression

Brotli is a new compressed data format developed by Google for compressing web data. It is documented in RFC7932. Currently, almost all modern web browser support Brotli which compressed better and faster than Deflate. Brotli is can be enabled in most popular web server including: Apache HTTPD – through mod_brotli (for release after 2.4.26) Nginx […]

httpd, Internet Stuff, nginx, Web Server

Solving “Connection is encrypted using obsolete cipher suite” warning from Chrome

Here is a how to on how to solve the dreaded warning “Your connection is encrypted using obsolete cipher suit” from Google Chrome. Firstly the warning had nothing to do with using cheap or self-signed TLS/SSL security certificate, but it has to do with cipher suite used on the server part. So if you are […]

Android, httpd, Mobile, nginx, Web Server

How to set Android *.apk mime-type for Nginx web server

Here’s a simple guide on how to add the correct mime-type for Android APK file for Nginx webserver. sudo nano /etc/nginx/mime.types In “mime.types” file, add this line within the “types” block types { … … application/vnd.android.package-archive apk; … … } Restart nginx server sudo service nginx restart Done!

httpd, nginx, Server, Ubuntu/Debian, Web Server

Install NGINX with PageSpeed using *.deb for Ubuntu LTS (AMD64)

Hello there, I’ve made an easily installable *.deb NGINX package with PageSpeed. The package is made for Ubuntu LTS on AMD64 machine. Ubuntu 14.04 LTS – nginx 1.8.0 with PageSpeed nginx-full_1.8.0-1+trusty1-mypapitubuntu4_amd64.deb Full package nginx-extras_1.8.0-1+trusty1-mypapitubuntu4_amd64.deb Extra package Ubuntu 14.04 LTS – nginx 1.8.0 with PageSpeed: Other Package nginx-common_1.8.0-1+trusty1-mypapitubuntu4_all.deb nginx_1.8.0-1+trusty1-mypapitubuntu4_all.deb nginx-doc_1.8.0-1+trusty1-mypapitubuntu4_all.deb Installing nginx-extras or nginx-full is as […]

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) […]

Computers, httpd, Mobile, Web Server

Checking if website is Mobile-Friendly

Google has announced that they will take Mobile-Friendly site into account when indexing sites. Thus, it is prudent to ensure the particular website that you’re maintaining is mobile friendly. There are two main tools released by Google for testing if the website is Mobile-Friendly: Google Mobile Friendly Test PageSpeed Insights However, personally I like PageSpeed […]

GNU/Linux, httpd, nginx, Server, Ubuntu/Debian, Web Server

How to check if your website supports SPDY 3.1

Although Google has announce to drop SPDY support by early February 2016 in favor of HTTP/2, SPDY remains the best HTTP protocol extension to maximize compression and reduce webpage load latency. The current and final SPDY implementation supported by Mozilla Firefox and Google Chrome is SPDY/3.1. In order to check if your webserver supports SPDY […]

Computers, Internet Stuff, security, Web Server

Mypapit GNU/Linux blog is now served with CloudFlare!

After long and careful consideration, I decided to enable CloudFlare for my blog. CloudFlare is a content delivery network which aims to enhance website security and performance. CloudFlare CDN offers protection againts many forms of malicious activity including: spammers, email harvesters, SQL Injection, XSS, denial-of-service attack and suspicious web requests. Therefore saving valueable bandwidth from […]

Scroll to Top