小编Moh*_*ain的帖子

_default_ VirtualHost 在 443 端口重叠,第一个优先

我有两个运行在同一台服务器上的 ruby​​ on rails 3 应用程序,(ubuntu 10.04),都带有 SSL。

这是我的 apache 配置文件:

<VirtualHost *:80>
ServerName example1.com
DocumentRoot /home/me/example1/production/current/public
</VirtualHost>
<VirtualHost *:443>
ServerName example1.com
DocumentRoot /home/me/example1/production/current/public
SSLEngine on
SSLCertificateFile /home/me/example1/production/shared/example1.crt
SSLCertificateKeyFile /home/me/example1/production/shared/example1.key
SSLCertificateChainFile /home/me/example1/production/shared/gd_bundle.crt
SSLProtocol -all +TLSv1 +SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM
</VirtualHost>


<VirtualHost *:80>
ServerName example2.com
DocumentRoot /home/me/example2/production/current/public
</VirtualHost>
<VirtualHost *:443>
ServerName example2.com
DocumentRoot /home/me/example2/production/current/public
SSLEngine on
SSLCertificateFile /home/me/example2/production/shared/iwanto.crt
SSLCertificateKeyFile /home/me/example2/production/shared/iwanto.key
SSLCertificateChainFile /home/me/example2/production/shared/gd_bundle.crt
SSLProtocol -all +TLSv1 +SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

什么问题:

在重新启动我的服务器时,它给了我一些这样的输出:

 * Restarting web server apache2                                   
 [Sun Jun 17 17:57:49 2012] [warn] …
Run Code Online (Sandbox Code Playgroud)

https httpd.conf

69
推荐指数
1
解决办法
10万
查看次数

如何在 Linode 上设置 FTP?

看来 WordPress 确实需要安装 FTP 服务器才能从 Web 界面上传文件。我已经安装了 WordPress 博客。我需要安装一些插件,但我得到了一个盒子:--

  To perform the requested action, WordPress needs to access to your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.
Run Code Online (Sandbox Code Playgroud)

像这样的东西:-- 在此处输入图片说明

你能帮我吗?

ftp linode ubuntu-10.04

5
推荐指数
2
解决办法
9180
查看次数

什么是默认的 postfix smtp 设置?

这可能是一个蹩脚的问题..

我一直在使用 postfix 通过我的 rails 应用程序发送邮件。我只是通过这些命令安装 postfix,因为我从来没有真正考虑过这个 postfix 的实际情况。我更关心代码的应用等等。

  sudo apt-get install postfix
  sudo apt-get install bsd-mailx
Run Code Online (Sandbox Code Playgroud)

如果您使用 postfix,那么您可以通过在 /etc/postfix/main.cf 中设置“smtpd_use_tls=no”禁用 tls 来快速修复它

sudo /etc/init.d/postfix start
Run Code Online (Sandbox Code Playgroud)

就是这样。我的 rails 应用程序自动开始通过 postfix 为我发送邮件。但现在我需要这个后缀的 smtp 设置。我怎样才能知道呢?有人可以告诉我吗?

编辑

我正在寻找 SMTP 主机名、SMTP 用户名、SMTP 密码、端口(默认为 25)

postfix configuration

5
推荐指数
2
解决办法
4万
查看次数

标签 统计

configuration ×1

ftp ×1

httpd.conf ×1

https ×1

linode ×1

postfix ×1

ubuntu-10.04 ×1