2014年5月30日 星期五

Apache 允許特定網段

多個網段以空格分開
Order Allow,Deny
Allow from 192.168.16.0/24 192.168.20.0/24
 
 
 
Allow, Deny 順序 
Match      | Allow,Deny result   | Deny,Allow result
-------------------------------------------------------
Allow only | Allowed             | Allowed
Deny only  | Denied              | Denied
No match   | Default: Denied     | Default: Allowed
Match both | Final match: Denied | Final match: Allowed 
 
 
 
 
References : 
Apache httpd: How can I Deny from all, Allow from subnet, but Deny from IP within that subnet? - Server Fault

2014年5月29日 星期四

virt-manager-tui install

ImportError: No module named newt_syrup.dialogscreen

# apt-get install libslang2-dev
# apt-get install libpopt-dev 

$ git clone git://git.fedorahosted.org/git/newt

$ ./autogen.sh
$ ./configure
$ make
# make install


$ git clone git://git.fedorahosted.org/newt-syrup.git

# python setup install

No module named libuser
# sudo apt-get install python-libuser

virt-manager image directory

default path is  /var/lib/libvirt/images

you can change it in /usr/share/virt-manager/virtManager/config.py
DEFAULT_XEN_IMAGE_DIR = 'YOUR_PATH'