服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

尝试在Ubuntu 14.04上使用Apache设置SSL

我已经从namecheap.com购买了SSL证书。 我正试图在运行Ubuntu 14.04和Apache的服务器上安装它。 我使用以下教程来设置Apache https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts 。 服务器具有仅在HTTP上运行的预先存在的站点。 该网站使用两个子域名admin.example.com和api.example.com,所以我购买了通配符证书。 我已经根据证书颁发机构安装了证书,并修改了Apache config example.com.conf来添加SSL虚拟主机,我仍然希望非HTTPS页面能够正常工作,所以我离开了现有的80端口configuration,并添加了新的虚拟主机主机configuration如下。 我重新启动Apache并尝试通过https查看页面,但从Firefox获取以下错误代码(Error code: ssl_error_rx_record_too_long) 我已经尝试了这个post中提到的修复,但没有成功https://www.digicert.com/ssl-support/apache-fix-common-ssl-errors.htm#SSLRecordLength 我也检查了防火墙已经打开了端口443。 Apacheconfiguration <VirtualHost *:80> ServerAdmin [email protected] ServerName example.com ServerAlias www.example.com api.example.com admin.example.com DocumentRoot /var/www/example.com/public/ <Directory "/var/www/example.com/public/"> Options Indexes FollowSymLinks AllowOverride None Order deny,allow Allow from all Satisfy all IndexIgnore */* RewriteEngine on # if a directory or a file exists, […]

virtual_alias_domains – 转发邮件时如何使用不同的IP地址?

我在具有4个IP地址的CentOS 6.6 Linux服务器上托pipe2个Web域(domain1.com和domain2.com)。 Postfix 2.6.6接收邮件到[email protected][email protected] ,并将它们转发到[email protected][email protected] 。 这里是configuration文件的摘录: /etc/postfix/main.cf中 inet_interfaces = all inet_protocols = ipv4 virtual_alias_domains = domain1.com domain2.com virtual_alias_maps = hash:/etc/postfix/virtual smtp_generic_maps = hash:/etc/postfix/generic /等/后缀/虚拟 [email protected] [email protected] [email protected] [email protected] 我的问题是,第一个人(我的父亲,自1990年以来在互联网上的业务)变成了很多垃圾邮件。 我使用Spamassassin拒绝这些邮件,但有些仍然通过,当转发到[email protected]他们导致Google扼杀我的服务器: DFC32800849 3412 Fri Jan 30 11:40:38 [email protected](主机alt1.gmail-smtp-in.l.google.com [74.125.130.26]说:421-4.7.0 [144.76.123.123 15]我们的系统检测到来自您IP地址的421-4.7.0不请自来的邮件的exception速率为了保护我们的421-4.7.0用户免受垃圾邮件,从您的IP地址发送的邮件已暂时421-4.7.0速率有限​​,请访问421-4.7.0 http://www.google.com/mail/help/bulk_mail.html查看我们的Bulk 421 4.7.0电子邮件发件人指南。fl14si17784804pdb.81 – gsmtp(在DATA命令结束时回复))person1 @ gmail.com 这会影响第二个人,经过长时间的延迟,他们会收到邮件给[email protected]。 我的问题是,是否可以configurationPostfix,使它使用不同的IP地址(因为我的服务器有4个)用于转发邮件? 谢谢你,下面是当前的“postconf -n”输出: alias_database = […]