Recent Notes

Displaying notes 1 - 10
Created by magnum on September 22, 2014 22:13:18    Last update: September 22, 2014 22:13:18
Use dumpio_module to see the actual content transfered between the proxy server and the backend server. # load dumpio_module LoadModule dumpio_modu... Traffic between proxy and backend server will be logged in error.log .
Created by magnum on September 22, 2014 22:06:26    Last update: September 22, 2014 22:06:26
This config file sets up a reverse proxy from HTTPS to backend HTTPS, assuming mod_proxy and mod_proxy_http already loaded. <IfModule mod_ssl.c> <VirtualHost _default...
Created by magnum on September 22, 2014 22:23:25    Last update: September 22, 2014 20:33:52
Environment variables can be used in Apache ProxyPass and ProxyPassReverse directives. This example shows how to use mod_rewrite to set an environment variable, then use it in ProxyPassReverse . # turn on interpolation ProxyPassInterpolat... Apache will give a warning about SERVER_NAME not defined, but you can safely ignore it.
Created by voodoo on September 21, 2014 22:47:48    Last update: September 21, 2014 22:47:48
Trust the Intel Graphics Installer: $ wget --no-check-certificate https://download.01.... $ wget --no-check-certificate https://download.01.... Download the installer debian package from Install the debian package. Run intel-linux-graphics-installer
Created by voodoo on September 21, 2014 14:54:22    Last update: September 21, 2014 22:29:56
Find out the wireless interface name: # ifconfig I don't know if this helps, but it doesn't hurt: # ifconfig wlan0 up Just to see if wifi works, scan for available wireless networks: # iwlist wlan0 scan Connect (replace SSID with actual id and WIFI_KEY with actual key): # iwconfig wlan0 essid <SSID> key s:<WIFI_KEY> This command failed for me with error: Error for wireless request "Set Encode" (8B2A) : ... The reason being that iwconfig expects a WEP key, but my wifi runs WPA. So, I need to run wpa_supplicant . With no patience to find out how to do it the Ubuntu way, I created a conf file for wpa_supplicant : network={ ssid="example" proto=WPA ... But before running my wpa_supplicant , I...
Created by voodoo on September 17, 2014 22:09:04    Last update: September 17, 2014 22:09:04
Lua dev library was missing on my Ubuntu box, resulting in the error: error: lauxlib.h: No such file or directory Install Lua dev library: $ sudo apt-get install liblua5.1-dev
Created by Dr. Xi on September 12, 2014 12:10:00    Last update: September 12, 2014 12:10:00
In Apache conf, load mod_rewrite : LoadModule rewrite_module /usr/lib/apache2/modules... or, simply create symlink /etc/apache2/mods-enabled/rewrite.load on Ubuntu. In directory conf, set AllowOverride : <Directory /var/www/html> Options Inde... Create .htaccess file: Options +FollowSymLinks RewriteEngine On ... where NC means case-insensitive match, L means this is the last rule, no more rules will be processed (if there are more rules following the current one). See documentation .
Created by voodoo on September 11, 2014 18:23:04    Last update: September 11, 2014 18:23:04
Got this error while trying to load a Lua module: error while loading shared libraries: Turns out that liblua5.1-0 has to be installed separately even though I had Lua5.1 on my system. $ sudo apt-get install liblua5.1-0
Created by James on September 09, 2014 16:51:22    Last update: September 09, 2014 16:51:22
This Mozilla page gives a good explanation of the CSS background shorthand: Example: background: url('../img/google-play.png') no-repea...
Created by James on September 04, 2014 21:52:29    Last update: September 04, 2014 21:52:29
To select jQuery objects with both class the-class and name the-name : $(".the-class [name=the-name] ")
Previous  1 2 3 4 5 6 7 8 9 10 Next