我已经为我的网站购买了多个域名。 现在,我redirect这些停放的域(指向我的nginx ipaddress的域)如下所示: server { server_name example.com www.example; rewrite ^(.*) http://example.co.uk$1 permanent; } 现在,我有超过5或6个停放的域名都指向这个ipaddress(1个站点)。 所以,如果我有多个停放的域名为同一个网站,我唯一的select是写一个真正冗长的server_name这样? server { server_name example.com www.example example.org www.example.org example.net www.example.net examples.com www.examples.com examples.org www.examples.org examples.net www.examples.net; rewrite ^(.*) http://example.co.uk$1 permanent; } 以上不适合我。 但是我的问题是,这是如何完成的? 我的意思是,如果我有很多停放的域,我只是一个添加不断添加到我的Nginxconfiguration的服务器块的冗长的行,这应该没有问题? 有人可以请澄清这一点,请…
这里基本上是我想要做的: http请求进来后,路由器中的前端将其发送到本地networking(服务器A)中的服务器, 服务器识别虚拟主机的请求 服务器a具有该虚拟主机的重写规则,该规则重写请求以将其发送到位于同一本地networking上的服务器B 服务器B获取请求,识别虚拟主机并根据虚拟主机设置设置文档根目录 它一直运行到服务器B,请求总是以默认定义结束。 这可能吗? 我正在运行Debian Wheezy。 服务器apacheconfiguration文件/etc/apache/sites-enabled/wiki <Directory /var/lib/shared/websites/wiki/www> Options None AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> ServerName wiki ServerAlias wiki.asus.local ServerAlias wiki.mydomain.net DocumentRoot /var/lib/shared/websites/wiki/www CustomLog /var/lib/shared/websites/wiki/log/access.log combined ErrorLog /var/lib/shared/websites/wiki/log/error.log RewriteEngine on RewriteRule ^/(.*) http://192.168.10.91/$1 [P,L] </VirtualHost> 服务器B apacheconfiguration文件/etc/apache/sites-enabled/wiki <Directory /var/lib/shared/websites/wiki/www> Options None AllowOverride All Order allow,deny Allow […]
根据其手册页 (Section FORMAT ),unbound的configuration指令include: “[…]可用于包含多个文件,请参阅glob(7)。” 现在,不pipe这个指令是什么 include: /etc/unbound/zones/*.conf 或一般,全部包括 include: /etc/unbound/zones/* 我在服务启动时收到的消息是: Restarting recursive DNS server: unbound/etc/unbound/unbound.conf:17: error: cannot open include file '/etc/unbound/zone/*': No such file or directory read /etc/unbound/unbound.conf failed: 1 errors in configuration file [1420997682] unbound[17125:0] fatal error: Could not read config file: /etc/unbound/unbound.conf 只有完全合格的文件名称工作。 我该如何解释手册页的内容? 我解释错了吗? glob应该允许通配符,对吧? 系统信息:RasPi上的Debian Wheezy,未绑定1.4.17-3 + deb7u2
我正在尝试使用sssd同步我的Debian服务器。 当我运行getent passwd username@domain ,用户不会被返回。 日志说这是因为我错过了从LDAP查找UID。 不过,当我设置ldap_id_mapping = true时候,我清楚地知道我不需要它。 even的完整日志是: (Mon Jan 26 17:39:13 2015) [sssd[be[thecompany.dk]]] [sdap_save_user] (0x0020): no uid provided for [nmw] in domain [netdesign.dk]. (Mon Jan 26 17:39:13 2015) [sssd[be[thecompany.dk]]] [sdap_save_user] (0x0040): Failed to save user [somedude] (Mon Jan 26 17:39:13 2015) [sssd[be[thecompany.dk]]] [sdap_save_users] (0x0040): Failed to store user 0. Ignoring. (Mon Jan […]
我该如何解决这个难看的输出“npm ls”? Debian Wheezy / node v0.10.36 / npm 2.4.1 更新: «*» – 是一个丑陋的字符,我不能在这里重现: [email protected] /var/www/helloworld *** [email protected] *** [email protected] ***** [email protected] ***** [email protected] ****** [email protected]
我错误地做了一个小的分区分区在我的Debian安装,并在这个裸机服务器上安装openvz后 ,我注意到,我创build了这个分区的生产VPS ,并达到100% 这是df -h结果: Sys. fich. Taille Util. Dispo Uti% Monté sur udev 10M 0 10M 0% /dev tmpfs 3,2G 352K 3,2G 1% /run /dev/md2 20G 18G 179M 100% / tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs 6,5G 0 6,5G 0% /dev/shm /dev/md3 1,8T 4,3G 1,7T 1% /home /dev/ploop22956p1 25G 4,5G 20G 19% /var/lib/vz/root/1 […]
我刚刚完成了一个Nagios 4.1.1的小安装。 它使用Raspbian在Raspberry Pi上运行。 检查出好的,当我用/etc/init.d/nagios start手动/etc/init.d/nagios start它时,它工作正常。 我总是告诉我的debian系统通过这样做来启动系统启动: ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios我可以看到符号链接已经成功创build。 但是,启动时不会启动。 系统启动后,我可以运行启动脚本,通过执行/etc/rcS.d/S99nagios start所以我知道(/认为)符号链接是好的。 当服务器启动时,Apache正在运行,并且Nagios页面已启动,但主页显示“无法获得进程状态”,这是在nagios服务未运行时预期的。 有没有办法查看启动日志,看看是否正在尝试,还是有更好的方法来启动它启动? 更新:我运行update-rc.d ,它给了我这个: update-rc.d: using dependency based boot sequencing update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match resize2fs_once Default-Start values (2 3 4 5 S) update-rc.d: warning: default stop runlevel arguments (0 1 6) […]
我有一台基于Debian GNU / Linux 7(wheezy)的运行OpenMediaVault 2.1.18(Stone刻录机)的HP Microserver。 前几天,我需要从一个USB驱动器复制大量的文件,用NTFS格式化。 我连接它,装上它,开始复制,然后完成。 一天之后,我发现它几乎没有复制任何东西,而且我的NAS性能也一塌糊涂。 调查发现,页面缓冲区和缓冲区caching现在占用了超过3/4的系统内存(一起使用的时间通常less于10%),ZFS ARC现在被挤压到剩余的内存中(小于正常大小的1/4 )。 当我意识到出了什么问题的时候,我停止了拷贝,卸载并拔掉了驱动器,很快caching恢复到了正常的大小,然后ARC开始恢复到正常的水平。 所以,如果将来需要做更多的直接复制,我该如何防止挂载ntfs驱动器,导致大量的内存消耗,使得我所需要的内存不足ZFS ARC? 注意:正如shodanshok所 build议的 ,我尝试运行echo 3 > /proc/sys/vm/drop_caches (根据man 5 proc “free pagecache,dentries and inodes”),但是这也冲刷了我的ARC(除了需要caching的内存L2ARC标题)。 因此,我的系统有很多可用的内存,但是由于事情只能在ARC或L2ARC中caching,所以我的系统花了很多时间来驱动硬盘来重新填充ARC,而不是一个理想的状态。 在这张图片中,你可以看到5号开始时的ZFS饥饿,当我开始我的NTFS拷贝时,在6号早期卸载NTFS驱动器时,事情恢复正常,最后ARC被清除(并重build)在7日下午使用drop_caches。
我正在gcloud计算引擎上运行一个实例。 我需要将Google存储分区(属于不同的项目)加载到我的实例中。 这个实例在Debian Wheezy上运行。 我已经安装了gcc,fuse,gcsfuse。 但是当我试图安装桶时: $ gcsfuse bucket-name / mnt / bucket-name 我得到了错误: stderr:fusermount:没有find保险丝设备,先尝试'modprobe保险丝' 试过“modprobe引信”,我得到错误: -bash:modprobe:命令未find 任何人都知道问题可能是什么,或者任何人遇到同样的问题? 任何想法,意见,帮助将不胜感激。 提前致谢!
我更新了Debian 6到7.更新HTTP page load time图(Munin)从0.1增加到0.7秒。 可能是什么问题呢? 什么可以打破,需要检查? 谢谢! Munin – 页面graphics的HTTP加载时间