Skip to content

Month: December 2016

Mass virtual hosting with apache through mod_rewrite

If you are a developer and you’re working with several subdomains for development purposes, you can create a single virtualhost, without the need to add subdomains and restart/reload the apache web server. Directory structure (example): /var/www /var/www/project1.unixteacher.org /var/www/project2.unixteacher.org /var/www/project3.unixteacher.org /var/www/development.unixteacher.org One single virtualhost for any subdomain: <VirtualHost *> DocumentRoot /var/www ServerName unixteacher.org ServerAlias *.unixteacher.org CustomLog…

HTTP DoS Protection with nginx

HTTP DoS Protection with Nginx through ngx_http_limit_conn_module and ngx_http_limit_req_module modules. The ngx_http_limit_conn_module module is used to limit the number of connections per the defined key, in particular, the number of connections from a single IP address. Not all connections are counted. A connection is counted only if it has a request processed by the server…

Ethernet RTL 8168 driver on Debian

By default on Debian is used 8169 driver instead of 8168 (Realtek ethernet driver). Also, 8168 driver does not exist. ~# find /lib/modules/`uname -r`/kernel/drivers/net/ethernet/ -name *816* /lib/modules/3.16.0-4-amd64/kernel/drivers/net/ethernet/realtek/r8169.ko The network device ~# lspci |grep Ether 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09) The loaded driver ~# lsmod |grep…