我的 Ubuntu 11.04 机器对 root、swap 和 home 使用 LUKS 加密。例程 fsck -n 揭示了我需要修复的一组错误。fsck 需要卸载分区。在 luks 之前,我会简单地从 U 盘启动并从那里修复运行 fsck。对 LUKS 加密分区执行此操作的步骤是什么?
我正在将旧网站移至基于 nginx 的新主机。为了保留 URL(完全更改),我有一个列出映射的文件。我想将它与map 模块一起使用。
在里面/etc/nginx/nginx.conf http{ ... }
我指的是 PERL 和小写函数:
#Include PERL and have a function for lowercasing the incoming URL
perl_modules perl/lib;
# function to lowercase incoming strings like the URL
perl_set $uri_lowercase 'sub {
my $r = shift;
my $uri = $r->uri;
$uri = lc($uri);
return $uri;
}';
Run Code Online (Sandbox Code Playgroud)
我的站点配置在文件中/etc/nginx/sites-enabled/notessensei
(Thx Alexey 指出)如下所示:
server {
listen www.notessensei.com:80;
root /home/stw/www;
index index.html;
server_name www.notessensei.com notessensei.com;
location / {
map $uri_lowercase $new {
include /home/stw/www/blognginx.map; …
Run Code Online (Sandbox Code Playgroud) 我的一位 Windows 管理员声称:“Windows 2008 DNS 服务器无法将 2 个名称分配给一个 IP 地址”。除了您可以使用 CNAME 来实现这一点这一事实之外,我确信(使用过各种其他 DNS 服务器)应该可以添加多个指向同一 IP 地址的 A(或 AAAA)。有人可以为我确认/澄清吗?谢谢