Currently browsing category

Linux, Page 31

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 …

Wiki error 1034

from within function “SearchUpdate::doUpdate”. MySQL returned error “1034: Incorrect key file for table ‘searchindex’; try to repair it (localhost)”. REPAIR TABLE searchindex