httpd

httpd, nginx, Server

Getting Rid of /.well-known/traffic-advice 404 errors in nginx web server

It seems Google have implemented private prefetch proxy in Chrome for Android. The upside of this private prefetch proxy is improved browsing experience for mobile users by reducing waiting time for web pages to load. The downside is, as web server administrators – you might find a lot of 404 status in your web logs. […]

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

Internet Stuff, nginx

No time to read lengthy articles? TLDR Chrome extension will digest that for you

Ever encountered long winded article which makes you feel like you do not want to read? Enter TLDR; Chrome extension, a browser extension made by Recognant which can summarize any article for you.  The extension works well with English language article, but upon my inspection, it can also works well for Malay language article. A […]

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

Generating TLS/SSL Self Signed Certificate for Nginx in Ubuntu LTS

This post concerns on generating self-signed TLS/SSL certificate for Nginx in Ubuntu LTS and assumes that you’ve configured nginx server with a default site. Step 1: Generate OpenSSL certificate sudo mkdir /etc/nginx/ssl sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt You are about to be asked to enter information that […]

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

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