Articles of apache 2.2

将SSL证书移动到另一台Apache服务器

我们只是将新的Windows机器设置为Web服务器,安装了Apache 2.2.19,并且安装了openssl ,我们希望将现有的包括SSL证书(Verisign)的Web从旧的设置Linux,Apache 2.2.3中移出。 现在,如果我在网上search,我所能find的就是将证书文件复制并粘贴到新的服务器上。 但是当我完成了所有的configuration之后,Apache无法打印错误日志中的任何内容,只有提示“请求操作失败” 。 我试图运行httpd.exe -e debug ,看到它停在Loaded module ssl_module ,这些行打印在error.log中: [Thu Aug 18 18:18:18 2011] [info] Init: Initialized OpenSSL library The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. 并从Windows事件查看器: Faulting application […]

甘地SSL证书+谷歌浏览器:未知权限

我正在使用新发布的Gandi.net SSL证书,虽然它工作正常,但大多数地方我都会在Google Chrome中发出警告/错误: https://skitch.com/timharding/f2jjf/google-chrome 我testing了链接工作: http://www.sslshopper.com/ssl-checker.html#hostname=www.submitten.com 我的SSLconfiguration如下所示: SSLCertificateFile /etc/ssl/certs/submitten.com.2011.crt SSLCertificateKeyFile /etc/ssl/certs/submitten.com.2011.key SSLCACertificateFile /etc/apache2/ssl.crt/GandiStandardSSLCA.pem SSLVerifyClient None 根据他们的build议。 为什么Chrome会标记这个问题? 谢谢。

404在本地服务器与Apache和dnsmasq

我一直试图设置一个本地服务器到这里和这里提到的(在底部添加TLDR ),但我不断尝试404s 。 我可以ping google.com和xxxx.dev。 所以我认为这是一个问题与Apache而不是dnsmasq,但我不是100%肯定,因为我从来没有处理过dnsmasq之前。 这是我的[username] .conf文件中的当前内容 NameVirtualHost *:80 <Directory "/Users/[your-username]/Sites/"> Options MultiViews FollowSymLinks Includes AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> UseCanonicalName off VirtualDocumentRoot /Users/[your-username]/Sites/%1 </VirtualHost> 在我的networking设置中,我已经将127.0.0.1和192.168.1.1设置为我的DNS服务器 并且我也validation了上面指定的DocumentRoot文件夹中有内容 编辑:所以我的目标是将所有* .dev地址设置到apache .conf文件中提到的Document根目录中的相应文件夹。 不知道如果我是正确的,但dnsmasq应该redirect所有本地请求到我的机器与此在我的/usr/local/etc/dnsmasq address=/dev/127.0.0.1 listen-address=127.0.0.1

本地主机上的Netcat“连接被拒绝”

我想从一个PHP文件启动一个netcat连接的值,但它死亡: localhost [127.0.0.1] 2000 (?) : Connection refused 我不知道为什么,但它运作良好,如果我ssh它作为Apache用户(万维网数据)。 这就是我所做的: 开始一个无限循环,服务一个有点延迟的date: $ (while true; do nc -l -p 2000 -c "sleep 5; date"; done)& 检查是否工作: $ su www-data $ nc localhost 2000 Fri Oct 16 21:33:20 COT 2009 创build/var/www/test.php如下: <?php exec('nc localhost 2000>>/var/www/dates.txt 2>>/var/www/errors.txt &'); ?> 在浏览器上运行它: http://myserver.com/test.php 最后看看这两个txt的,date是空的(没有像#2中的响应),错误有“连接被拒绝”的错误。 该服务器是一个运行Ubuntu Server 9.04 DRBD和Heartbeat的LAMP集群。 让我疯狂的是,这个test.php在我的笔记本电脑(Ubuntu桌面9.04上的LAMP)中效果很好,服务器似乎已经打开并监听端口: $ […]

如何设置匿名autoversioning mod_dav_svn服务器?

我想创build一个自动备份的DAV SVN服务器,没有任何types的访问控制。 我在这方面进行了几个变种的实验,但是最后他们中的每一个都遇到了这个错误: "Anonymous lock creation is not allowed." 所以,作为回退选项,我想configuration我的SVN位置具有默认凭据。 这可能吗? 有没有更好的方法来做我想做的事情?

htaccess的问题

我在.htacess中有几行 Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^mydomain.org [NC] RewriteRule ^(.*)$ http://www.mydomain.org/$1 [L,R=301] # index.php to / RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /.*index\.php\ HTTP/ RewriteRule ^(.*)index\.php$ /$1 [R=301,L] # forum RewriteCond %{REQUEST_URI} !^/forums/ RewriteRule index.php/(.*) http://forum.mydomain.org/$1 [R=301,L] 这个代码运作良好,但我不知道如果代码是标准的。 我想设置htaccess: * mydomain.org go to www.mydomain.org (its ok..) * mydomain.org/index.php go to www.mydomain.org (its ok..) * forum.mydomain.org stay forum.mydomain.org […]

需要从apache segfault生成一个核心转储的帮助

我有一个脚本,间歇性地返回在Firefox和Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error. chrome.死亡的Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error. chrome. Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error. chrome. 当我尝试访问使用PHP HTTP客户端(如Zend_Http_Client)的脚本时,间歇性地我得到一个exception(抱歉,我目前没有在我身上的确切消息)。 我怀疑是段错误。 这是由我的错误日志中的行进一步支持,如下所示: [Thu Mar 18 16:03:02 2010] [notice] child pid 845 exit signal Segmentation fault (11) 现在,我正在运行RedHat,并且我知道RedHat不会立即生成核心转储。 我遵循这里的说明http://kbase.redhat.com/faq/docs/DOC-5353 ,但我没有看到任何核心转储。 如何生成核心转储?

在testing与生产之间共享Apacheconfiguration

我有一个稍微平淡的Apacheconfiguration的个人网站。 在上传到服务器之前,我会在个人计算机上testing更改。 磁盘上文件的path和站点的根URL在testing和生产条件之间当然是不同的,它们在configuration中出现很多地方(特别是<Directory>块,用于具有脚本或没有目录列表的特殊位置或…)。 分享configuration的常见元素的最佳方式是什么?以确保我的生产环境尽可能与我的testing环境相匹配?

问题与Apache + SSL:长度不匹配错误和ocasional坏请求

我们最近将一台服务器从slicehost迁移到linode,我们将configuration从一台服务器复制到另一台。 除了我们得到: 偶然的错误与“错误的请求”,这个错误是不常见的,你可以使用它一整天,而不是看到它,第二天会发生很多。 除此之外,很多时候,事件虽然请求工作正常,我们得到一些错误。 使用ssldump我们得到: New TCP connection #1: myip(39831) <-> develserk(443) 1 1 0.2316 (0.2316) C>S SSLv2 compatible client hello Version 3.1 cipher suites Unknown value 0x39 Unknown value 0x38 Unknown value 0x35 TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA TLS_RSA_WITH_3DES_EDE_CBC_SHA SSL2_CK_3DES Unknown value 0x33 Unknown value 0x32 Unknown value 0x2f SSL2_CK_RC2 TLS_RSA_WITH_RC4_128_SHA TLS_RSA_WITH_RC4_128_MD5 SSL2_CK_RC4 TLS_DHE_RSA_WITH_DES_CBC_SHA TLS_DHE_DSS_WITH_DES_CBC_SHA TLS_RSA_WITH_DES_CBC_SHA SSL2_CK_DES […]

在mod_wsgi上部署django应用程序的问题

我似乎有与mod_wsgi部署django的问题。 在过去,我使用mod_python,但我想进行更改。 我一直在使用Graham Dumpleton在这里注意到http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango 1 ,但它似乎仍然不起作用。 我得到一个内部服务器错误。 django.wsgi file: import os import sys sys.path.append('/var/www/html') sys.path.append('/var/www/html/c2duo_crm') os.environ['DJANGO_SETTINGS_MODULE'] = 'c2duo_crm.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() WSGIScriptAlias / /var/www/html/c2duo_crm/apache/django.wsgi Apache httpd file: <Directory /var/www/html/c2duo_crm/apache> Order allow,deny Allow from all </Directory> 在我的apache错误日志中,它说我有这个错误这不是全部,但是我有最重要的部分: [Errno 13] Permission denied: '/.python-eggs' [Thu Mar 03 14:59:25 2011] [error] [client 127.0.0.1] [Thu Mar 03 14:59:25 […]