是否可以让 Apache 使用位置标签自动返回单个 URL 的 404 页面?
<Location "/some/url">
# ???
</Location>
Run Code Online (Sandbox Code Playgroud)
首选没有 mod_rewrite 或任何其他模块的解决方案。
我按照OpenVPN Easy Windows Guide在 Windows 7 上设置了 OpenVPN 2.1.3 。客户端(另一台计算机)可以毫无问题地连接并在 VPN IP 范围内获得所需的 IP xxx6/255.255.255.252。服务器本身是 xxx1/255.255.255.252。
在我的场景中,我只有需要安全连接到该服务器(也运行 OpenVPN 服务器)的客户端。
但是客户端和服务器不能互相 ping 通(在他们的 VPN IP 地址上)。这里有什么问题?
在服务器上,我设置了“HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\IPEnableRouter=1”来启用IP转发(当然还有重启)。
(编辑:当我使用 TAP 设备时,我必须添加 ping 工作,但是 TUN 怎么样?)
服务器配置:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 192.169.0.0 255.255.255.0 # OpenVPN seems to change this to x.x.x.252
ifconfig-pool-persist ipp.txt
client-to-client # not sure if I need this, just tried
keepalive 10 120
comp-lzo …Run Code Online (Sandbox Code Playgroud)