Currently browsing category

Linux, Page 31

Bridge

From : http://linux-net.osdl.org/index.php/Bridge A bridge is a way to connect two Ethernet segments together in a protocol independent way. Packets are forwarded …

How to redirect http requests to https in apache

 DocumentRoot /var/www/html  ServerName samtz.dyndns.org  ErrorLog logs/samtz-error_log  CustomLog logs/samtz-access_log combined     Options ExecCGI   Options Indexes   AllowOverride All    RewriteEngine on  RewriteCond %{SERVER_PORT} =80 …

How to redirect http requests to https in lighttpd

#./configure –with-openssl Please edit your lighttpd.conf : server.modules = (   ”mod_rewrite”,   ”mod_redirect”,   ”mod_alias”,   ”mod_access”,   ”mod_accesslog”,   … ) $SERVER[“socket”] == “:80” {  $HTTP[“host”] …

About printers

# display the default printer lpstat -d # lpoptions to overide the server defualt settings # ~/.lpoptions # /etc/cups/lpoptions Default hp9k_701 Duplex=DuplexNoTumble …

linux notes – su only for someone

##### /etc/pam.d/su #%PAM-1.0 auth sufficient /lib/security/$ISA/pam_rootok.so # Uncomment the following line to implicitly trust users in the “wheel” group. #auth sufficient /lib/security/$ISA/pam_wheel.so …