Nginx- Allow Directory browsing Rumi, March 20, 2016 Enabling directory listing in a folder in nginx is simple enough with just an autoindex on;directive inside the location directive. You can also enable sitewide directory listing by putting it in the server block or even enable directory access for all sites by putting it in the http block. An… Continue Reading
Understanding Virtualbox network interfaces Rumi, March 17, 2016 To create and experiment with all kinds of networks without the risk (or taking the trouble) of creating an actual one. And here is where VirtualBox excels by providing several options for networking out of the box. VirtualBox installs an additional NIC (Network Interface Card) on your host computer to… Continue Reading
NFS fix on LXC Host Server Rumi, March 17, 2016July 28, 2018 NFS client on LXC seems do not work. Why? The problem is apparmor on the real machine that block any appempt to mount NFS volumes. In order to try to minimize the security changes on apparmor I add the following lines in/etc/apparmor.d/lxc/lxc-default # allow nfs mount everywhere mount fstype=rpc_pipefs, mount… Continue Reading
Remote Administering pfsense Rumi, March 15, 2016 To open the firewall GUI up completely, create a firewall rule to allow remote firewall administration – do not create a port forward or any other NAT configuration. Example Firewall Rule Setup Firewall > Rules, WAN Tab Action: pass Interface: WAN Protocol: TCP Source: Any (or restrict by IP/subnet) Destination:… Continue Reading
Reverse Proxy with Caching Rumi, February 15, 2016 A Sample Nginx Reverse proxy configuration- an alternative to Varnish cache (kind of more simplistic)- user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { proxy_cache_path /cache levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g; server { location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_cache STATIC; proxy_cache_valid… Continue Reading
Reinstalling MySQL on CentOS/Redhat 6 Rumi, February 7, 2016 Some time we faces issues with MySQL installation on Linux machine. If we simply remove MySQL packages and re-install doesn’t fixes the issue, in that case old settings may still exists on server which again affects new install. In that case first uninstall MySQL completely from system and erase all… Continue Reading
Simple failover cluster using UCARP on Ubuntu (Heartbeat Alternative) Rumi, January 24, 2016 In this tutorial, I’ll show you the steps to create a simple failover cluster on Ubuntu using CARP. To make the things meaningful,we’ll create the cluster for Apache service but you can use it for any other service, which relay on IP. Scenario: Here is my Setup: PrimarySrv: This is the… Continue Reading
Server Monitoring with Munin and Monit on Ubuntu 14.04 LTS Rumi, January 6, 2016 Our system’s hostname is server1.example.com, and we have a website www.example.com on it with the document root/var/www/www.example.com/web. The following steps have to be performed as root user. To become root user on your server, run this command: sudo su Ensure that the system is up to date before you start… Continue Reading
Linux Tune Network Stack (Buffers Size) To Increase Networking Performance Rumi, December 23, 2015 By default the Linux network stack is not configured for high speed large file transfer across WAN links. This is done to save memory resources. You can easily tune Linux network stack by increasing network buffers size for high-speed networks that connect server systems to handle more network packets. The… Continue Reading
Mount NFS Partition from WIndows 2008 Server Rumi, December 21, 2015December 21, 2015 On server 2008, go to the Server manager, and Add/Remove Programs. For my example, i already have file services installed on this server, if it’s not, install it as a role, and add this feature, “services for NFS” Continue Reading