Oct
18
By
Rico at 2:38 pm ·
分类:
Linux
Since version 2.2, the ubiquitous Apache webserver has begun intermittently issuing GET requests to itself. They hit the root ‘/’ url. They appear in your access logs looking something like this:
::1 – - [...] “GET / HTTP/1.0″ 403 16 “-”
“Apache/2.2.4 (Unix) mod_ssl/2.2.4OpenSSL/0.9.8a
DAV/2 (internal dummy connection)”
And in your Rails logs like this:
Processing Controller#index (for ::1 at …) [GET]
<snip>
200 OK [http://127.0.0.1/]
Fine, GETs should be idempotent, so it’s completely safe practice and don’t you worry, son. Well, except…
更多 »
无留言
Oct
16
By
Rico at 2:24 pm ·
分类:
Linux
TRACE is supposed to make it possible to execute cross-site scripting attacks. You can disable TRACE with the following mod_rewrite directives:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* [F]
</IfModule>
Remember to place these directives in a container, or every VitualHost.
无留言
Oct
6
By
Rico at 2:19 pm ·
分类:
学海无涯
笔记本装上新买的Samsung 160G硬盘水土不服,虽然性能好,但是系统经常莫名其妙丢失引导数据,从xp换装Windows Server 2003问题依然存在,只好重新换回原来的40G Toshiba硬盘。
为能向MSC N128上导数据及备份数据,机器上保留有一份Windows 2000,发现引导到登录界面,输入正确的用户名和密码,显示”正在加载个人设置”对话框,随后不显示桌面,而是再次显示”欢迎使用 Windows”登录屏幕。
搜索找到解决办法:
用WinPE + ERD2003光盘引导系统,修改注册表文件:
将
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\Currentersion\Winlogon\Userinit:Reg_SZ:E:\WINNT\system32\userinit.exe
更改为:
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\Userinit:Reg_SZ:userinit.exe
更多 »
无留言
Oct
5
By
Rico at 2:13 pm ·
分类:
Linux
公司开发网站,为解决南北访问的问题,我把服务器托管到一个双线机房。经过反复调试,终于完成相应的配置。现将配置过程简明记录如下,供大家参考。
服务器状态
网通使用第一块网卡(eth0):
IP:218.57.200.242
掩码:255.255.255.0
网关:218.57.200.1
DNS1:202.102.152.3
DNS2:202.102.128.68
电信使用第二块网卡(eth1):
IP:222.173.254.21
掩码:255.255.255.240
网关:222.173.254.17
DNS1:219.146.0.130
DNS2:219.150.32.132 更多 »
Pages: 1 2
无留言