服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我刚刚从COMODO购买了通配符SSL证书,一切正常。 唯一让我困扰的是,当我打开一个使用该证书的机器的SSH隧道,并在浏览器中input类似的内容时, https://localhost:10003/app/ chrome抱怨服务器在“localhost”域使用* .mydomain.com的证书。 有什么我可以做,以防止这一点? 谢谢!
我有一个Apache服务器处理许多VirtulServers,一切工作正常。 我不知道它是如何在内部工作,但它确实如此。 我最近用nodejs修了一下,在这个服务器上,在8080端口上做实验。 现在我想继续生产,我已经build立了一个指向我的服务器的域名,但是我想避免我目前拥有的丑陋的example.org:8080/URL。 我怎么能告诉在80上监听的Apache将来自example.org的stream量路由到123.12.12.123:8080,反之亦然? 我已经尝试了ModRewrite,但指定端口和域迫使它出现在浏览器的地址栏,这是更丑陋的。 我试过ModProxy但没有成功(500错误)。 接下来我应该尝试什么?
假设我想在不同的端口上托pipe不同的站点。 服务器的内部IP为192.168.1.108,外部IP为170.24.180.160。 我的路由器转发了170.24.180.160的端口80,81和82。 现在我要在端口80,81和82中分别托pipe站点80,站点81和站点82,所以如果input170.24.180.160:82就会到站点82。 我试过这个: Listen 80 Listen 81 … NameVirtualHost 170.24.180.160:80 NameVirtualHost 170.24.180.160:81 … <VirtualHost 170.24.180.160:80> ServerName site80 DocumentRoot /home/yy/Sites/site80 </VirtualHost> <VirtualHost 170.24.180.160:8080> ServerName site81 DocumentRoot /home/yy/Sites/site81 </VirtualHost> … 但它给错误: *Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [Wed Jun 27 16:10:25 2012] […]
是否有可能/build议编写一个shell脚本来自动创build一个新的用户/ ftp用户的过程: 目前的过程: sudo useradd -d / ftp-files / user-a -m user -a sudo passwd user-a 问题是我需要在提示时手动input密码: input新的UNIX密码:[enter pwd] 重新键入新的UNIX密码:[inputpwd-same] passwd:密码更新成功 有很多帐户产生这个非常耗时..如果我可以通过一个脚本,这将是伟大的..但是有可能通过bash脚本飞行input密码?
我有下一个Apache虚拟主机和NameVirtualHost设置: NameVirtualHost 10.100.106.89 <VirtualHost 10.100.106.89> DocumentRoot /var/www/html/dev/novared_soporte/branches/v0.3/soporte ServerName 10.100.106.89 </VirtualHost> <VirtualHost 10.100.106.89> DocumentRoot /var/www/html/phpmyadmin ServerName 10.100.106.89/phpmyadmin ServerAlias 10.100.106.89/pma </VirtualHost> <VirtualHost 10.100.106.90> ServerName 10.100.106.90 DocumentRoot /var/www/html </VirtualHost> 当我试图达到: 10.100.106.89我可以到我需要的网站: /var/www/html/dev/novared_soporte/branches/v0.3/soporte 但是当我试图达到10.100.106.89/phpmyadmin我实际上得到error_log.txt(httpd日志)上的这个错误: [Thu Jun 28 12:12:59 2012] [error] [client 10.100.103.31] File does not exist: /var/www/html/dev/novared_soporte/branches/v0.3/soporte/phpmyadmin 我仍然不能得到错误的地方。 顺便说一句, 10.100.106.90正常工作,至less对于它的DocumentRoot /var/www/html
一个shell脚本testing变得不好,它发出 chmod -R 777 /. 到系统,而不是 chmod -R 777 ./ 并如预期那样抹去了关键的元数据。 我们已closures系统,下次打开时将无法正常工作。 我被告知 rpm –setperms -a rpm –setugids -a 应该至less修复由rpm维护的软件包的权限。 值得这样做吗? 是否有任何脚本可以复制同一系统的权限? 至less让盒子工作。 该框正在运行RHEL5.5 谢谢!
我收到了一个错误消息,以知道我的域上的用户。 我想知道这只是一个networking钓鱼垃圾邮件,还是真的从我们的域名发送? 我已经将我们的域名更改为OURDOMAIN.COM 我安装了Exchange 2010。 电子邮件的正文是 Delivery has failed to these recipients or distribution lists: sales The recipient's e-mail address was not found in the recipient's e-mail system. Microsoft Exchange will not try to redeliver this message for you. Please check the e-mail address and try resending this message, or provide the following diagnostic text […]
我有一个虚拟主机configurationssl在Apache中如下: <VirtualHost *:443> DocumentRoot "/home/user/Documents/Development/oshackers-developers/website/" ServerName oshackers.org 这个configuration从未工作。 Apache显示/ var / www的默认页面 当我改变configuration到下一行 <VirtualHost 192.168.0.3:443> DocumentRoot "/home/user/Documents/Development/oshackers-developers/website/" ServerName oshackers.org 阿帕奇工作,我有访问我的SSL站点。 为什么ssl需要一个IP工作,并不能为任何网站工作?
我拼命地尝试提高我的SAN连接的性能。 这是我有: [root@xnode1 dell]# multipath -ll mpath1 (36d4ae520009bd7cc0000030e4fe8230b) dm-2 DELL,MD36xxi [size=5.5T][features=3 queue_if_no_path pg_init_retries 50][hwhandler=1 rdac][rw] \_ round-robin 0 [prio=200][active] \_ 18:0:0:0 sdb 8:16 [active][ready] \_ 19:0:0:0 sdd 8:48 [active][ghost] \_ 20:0:0:0 sdf 8:80 [active][ghost] \_ 21:0:0:0 sdh 8:112 [active][ready] 和multipath.conf: defaults { udev_dir /dev polling_interval 5 prio_callout none rr_min_io 100 max_fds 8192 user_friendly_names yes path_grouping_policy […]
我想保持一个正在改变任何运行Windows XP或Windows 7的客户端PC的默认网关的轨道。 这是在一个日志任何地方? 如果不是,我该如何跟踪或logging这个事件?