服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我有一个Web服务器与其上托pipe的网站数量。 其中一个站点需要SSL,redirect在该站点的web.config中处理。 其余的网站没有SSL选项。 最近注意到,如果用户inputhttps://ourunsecuredomain.co.uk ,他们被带到需要SSL的网站。 我试着从web.config中删除redirect指令,但没有帮助。 有任何想法吗?
在Apache 2虚拟主机中,我有以下configuration(在我的情况下,文档根目录的.htaccess (为简单起见,http:80和https:443也是如此) RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 为了将任何http连接redirect到https而且, ErrorDocument 500 /error.php ErrorDocument 404 /error.php ErrorDocument 403 /error.php ErrorDocument 402 /error.php ErrorDocument 401 /error.php 生成自定义错误消息。 第三个要素是一个受保护的子文件夹,需要进行身份validation(每个.htaccess在该文件夹中): AuthType Basic AuthName "Test" AuthUserFile /some/path/to/passwords Require user joe 一切工作正常,除非有人试图检索http://example.com/protectedfolder事实上,会发生什么事情是,客户端获得302 Found答复redirect到https://example.com/error.php 另一方面, 如预期的那样, https://example.com/protectedfolder会导致一个自定义(即,由error.php生成) 401 。 http://example.com/publicfolder导致302redirect到https://example.com/publicfolder ,然后301永久redirect到https://example.com/publicfolder/ ,最后(因为DirectoryIndex被禁用)a自定义403错误。 正如所料。 而且, http://example.com/nonexistent也会导致302到https://example.com/nonexistent ,然后按照预期的那样定制404 。 如果我禁用了ErrorDocument 401configuration,则http://example.com/protectedfolder的查询会立即生成401 […]
我刚刚在我的arch linux机器上安装了OpenSMTPD服务器。 当我自己启动它时工作正常,但是当我重启机器时,启动失败。 这里是journalctl -f _SYSTEMD_UNIT=smtpd.service输出: — Reboot — Oct 05 15:14:29 campbell-kelly smtpd[260]: info: startup Oct 05 15:14:29 campbell-kelly smtpd[265]: fatal: smtpd: bind: Cannot assign requested address Oct 05 15:14:29 campbell-kelly smtpd[260]: warn: lost child: pony express exited abnormally Oct 05 15:14:29 campbell-kelly smtpd[262]: info: control process exiting Oct 05 15:14:29 campbell-kelly smtpd[263]: info: […]
我已经恢复了Samba数据,但是它保存的DNSlogging是192.168.2.0/24而不是192.168.0.0/24networking,它是恢复运行的系统。 因此,AD甚至无法正确解决自己的问题。 我如何重置所有logging? 暂时,我尝试使用samba-tool dns add来添加服务器的IP,但是它要求DOMAIN\root密码而不是DOMAIN\administrator或[email protected]如Samba Wiki示例所示 : $ sudo samba-tool dns add localhost domain.international.com domain A 192.168.0.10 Password for [DOMAIN\root]: 我的智慧就这样结束了。
我想拒绝任何入站电子邮件到[email protected],一个更多的人会希望这将是内部分配组/别名的一个例子。 我试过header_checks没有成功: zmlocalconfig -e postfix_header_checks="pcre:/opt/zimbra/conf/custom_header_checks" / opt / zimbra / conf / custom_header_checks的内容 /^To:[email protected]/ REJECT Mailbox no longer valid 但是我还是没有被拒绝。 我也尝试了一些从拒绝的configuration发送电子邮件给特定的收件人Postfix,因为他有东西configuration在我正在寻找的东西。 zmlocalconfig -e smtpd_recipient_restrictions=check_recipient_access hash:/opt/zimbra/conf/custom_recipient_blocklist /select/ Zimbra公司/ conf目录/ custom_recipient_blocklist [email protected]/ REJECT 这也没有按预期工作。
这似乎是一个NAT问题,但我完全不知道为什么这不是连接。 Cisco g0/0 192.168.42.5/24 <-> Wireless WAN: 192.168.42.1/24 Cisco g0/0 – shutdown Cisco g0/2 192.168.41.1/24 <-> Computer: 192.168.41.29/24 场景: 我ping从思科2911 – > 41.1,42.1,42.5,41.29以及google.com我从计算机ping – > 41.1 42.5,但不能ping 42.1也不google.com 为什么我现在不能从电脑上ping外部? 为什么不允许来自192.168.41.0 0.0.0.255的stream量过载g0 / 0? 🙁 version 15.2 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname TritonCap2911 ! boot-start-marker boot-end-marker […]
我最近一直在testingPostfix并将其configuration为虚拟环境中的发送专用邮件客户端。 我一直在使用几台虚拟机上的设置,直到我开始工作,终于find了我应该join的适当的值。我们的configuration是非常基本的,我会掩盖或域代码如下,我们正在使用。 # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is […]
我试图在一个基于Chef 11.10.4的客户端的Ubuntu 14.04系统上的厨师食谱中执行数据库数据加载。 我正在做一个ruby块的数据加载,这里是在日志中的错误的相关部分: Mixlib :: ShellOut ::的CommandTimeout 命令在600s后超时: 命令超过允许的执行时间,被TERM信号所杀死。 [2015-10-06T01:24:00 + 00:00]错误:ruby_block [加载数据集](chef-virtuoso :: load line 178)出现错误:Mixlib :: ShellOut :: CommandTimeout:600s后超时: 任何人都知道如何增加一个shell_out!的默认CommandTimeout为3600 shell_out! 在一个ruby块? 这里是从配方的ruby块是失败的: ::Chef::Recipe.send(:include, Chef::Mixin::ShellOut) ruby_block "Load Dataset" do block do shell_out!(DATA_LOAD_COMMAND) end end
我有我的服务器上安装了Ubuntu 14.04 LTS服务器,我想在我的服务器上安装透明代理服务器LANnetworking。 请帮我解决一下这个。 提前致谢。
使用新的,密码是否意味着SSLV3被启用或禁用? CONNECTED(00000003) write:errno=104 — no peer certificate available — No client certificate CA names sent — SSL handshake has read 0 bytes and written 0 bytes — New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE SSL-Session: Protocol : SSLv3 Cipher : 0000 Session-ID: Session-ID-ctx: Master-Key: Key-Arg : None Krb5 […]