Articles of apache 2.2

WordPress安装后,所有的“服务器找不到”错误

我从我的本地机器上将我的WordPress博客上传到Slicehost,然后将域名指向IP地址。 然后我正常安装了这个博客。 一旦我去了wp-login.phplogin,但是,我开始得到“服务器找不到”的错误。 这很奇怪,因为服务器进程还在运行,我检查了很多次。 我在错误日志或访问日志中看不到任何错误。 这不仅影响Wordpress。 我现在无法访问phpmyadmin,它被映射到同一个域地址的子目录。 到底是怎么回事? 谁能帮忙? 编辑:博客位于一个子域。 它仍然可以从IP地址访问。 虚拟主机configuration是ServerName和ServerAlias,都设置为blog.mysite.com。 当我改变这些并重新启动apache,phpmyadmin回来了。 编辑:这也不是传播问题,因为我从域名安装博客。 只是当我试图login到pipe理部分,我开始得到这些错误。

如何在运行Apache的Mac上密码保护服务器?

我已经看过如何在主页面上显示一个小框,你必须知道密码的教程,但我希望它popup文本框的位置,并要求input用户名和密码,就像你使用的样式试图进入路由器的设置。 我只是使用内置的Mac随附的Apache,我有一个网站设置,但无法弄清楚如何获得密码保护。 任何链接到这种types的密码保护的信息将是很好的。 谢谢。

RedirectPermanent vs RewriteRule

我目前有一个perm_redirects.conf文件被包含到我的Apacheconfiguration堆栈中,我有格式的行 RedirectPermanent /old/url/path /new/url/path 它看起来像我需要使用一个绝对的URL的新path,例如: http://example.com/new/url/path : http://example.com/new/url/path 。 在日志中,我收到“不完整的redirect目标/新/ url /path已更正为http://example.com/new/url/path” 。 (转述)。 在RewriteRule的2.2文档中,在底部,他们显示以下是一个有效的redirect,只有url-paths,而不是redirect右侧的abs URL: RewriteRule ^/old/url/path(.*) /new/url/path$1 [R] 但我似乎无法获得该格式来复制RedirectPermanent版本的function。 这可能吗?

Redmine 0.9在子域上,(redmine.mydomain.com而不是redmine.mydomain.com/redmine)

我想通过redmine.mydomain.com而不是redmine.mydomain.com/redmine redmine。 我该怎么做? 这是我redmine的.conf apache <VirtualHost *:80> ServerName redmine.mydomain.com DocumentRoot /var/www/html <Directory /var/www/html> Allow from all </Directory> <Directory /var/www/html/redmine> Options -MultiViews </Directory> RailsBaseURI /redmine </VirtualHost> 谢谢

让Apache来响应http广播

我想知道是否有办法configurationApache来响应发送到广播地址(即192.168.1.255)的http请求。 谢谢

带有Weblogic插件redirect的Apache 2,原始位置仍然要求后端

我们正在尝试使用Apache作为SSL提供程序在Weblogic服务器前设置SSL服务器。 以下是我们的httpd.conf中的内容: <Location /original> SetHandler weblogic-handler WebLogicHost 10.11.1.1 WebLogicPort 8700 PathTrim /original PathPrepend /destination ConnectTimeoutSecs 60 </Location> <Location /destination> SetHandler weblogic-handler WebLogicHost 10.11.1.1 WebLogicPort 8700 ConnectTimeoutSecs 60 </Location> 这个设置主要工作,但在ssl_error_log文件中有这些条目: [Wed Aug 11 14:59:00 2010] [error] [client xxx.xxx.xxx.xxx] ap_proxy: trying GET /original at backend host '10.11.1.1/8700; got exception 'CONNECTION_REFUSED [os error=0, line 1739 of ../nsapi/URL.cpp]: Error […]

dynamicAuthUserFile在Apache与mod_rewrite。 可能吗?

我有一个服务器与几个scponly帐户,我想在基本身份validation提供http访问。 问题的第一部分解决了,使用mod_rewrite为每个用户select合适的目录。 但是当我尝试为每个用户build立一个不同的auth用户文件时,问题就出现了。 只是我无法find如何做到这一点。 这是一个示例configuration。 <VirtualHost an-ip-number-and:a-port> ServerName *.example.com RewriteEngine On UseCanonicalName Off RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteCond /server/scponly/%1/incoming -d RewriteRule ^(.+) %{SERVER_NAME}$1 [C] RewriteRule ^([^.]+)\.example\.com/(.*) /server/scponly/$1/incoming/$2 [L] RewriteRule ^(.+) http://FAIL.example.com <Directory /server/scponly/*/incoming> AuthType Basic AuthName "SFTP-HTTP Area" AuthUserFile ??????? # <– this! require valid-user </Directory> </VirtualHost> 笔记: 我不能下降mod_rewrite因为其他目的,实际的configuration是与其他servername /目录混合检查/重写。 我无法将身份validation详细信息移至.htaccess文件,因为用户可能会将其删除。 但是,如果这种方法是部分解决scheme,我很感兴趣。 我也对其他方法感兴趣 我需要为每个目录创build不同的auth文件,只有一个文件将授予每个用户对所有目录的访问权限

mod_wsgi内存泄漏?

我有一个django应用程序运行在Apache 2(Worker)上的mod_wsgi上,在Nginx反向代理(也提供静态内容)后面。 当应用程序开始同时获得一堆命中时,内存使用量将从<20%增加到> 96%,整个应用程序将停止运行。 这里是我的Apache WSGIconfiguration: WSGIDaemonProcess djangoboss user=django group=django processes=2 maximum-requests=500 threads=1 python-path=/home/django/django_env/lib/python2.6/site-packages display-name=%{GROUP} WSGIProcessGroup djangoboss WSGIScriptAlias / /home/django/django/wsgi/django_wsgi_handler.py 这里从htop输出: PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 29551 django 20 0 793M 745M 6868 R 61.0 42.8 1:28.65 (wsgi:djangoboss) -k start 29550 django 20 0 793M 745M 6868 S […]

无法安装新的SSL证书(Apache2虚拟主机)

尝试为Apache2安装新的SSL证书时遇到问题。 我们在80端口上运行正常的stream量,在443上运行SSL。 我修改了httpd.conf ,只重命名/etc/httpd/conf/2009certs/ to /etc/httpd/conf/2010certs/ : <VirtualHost ServerIP:443> # This parameter already existed as-is SSLEngine on # These are the parameters I changed (already existed w/ diff paths.) SSLCertificateFile /etc/httpd/conf/2010certs/server.crt SSLCertificateKeyFile /etc/httpd/conf/2010certs/server.key SSLCertificateChainFile /etc/httpd/conf/2010certs/intermediate.pem SSLCACertificateFile /etc/httpd/conf/2010certs/gs_root.pem # Other parameters here; ServerAdmin, DocumentRoot, ServerName, ErrorLog, etc…. </VirtualHost> 存在*:80另一个VirtualHost块,但不对该区域进行更改。 用新的证书path保存httpd.conf后,注释掉旧的2009path,并尝试重新启动Apache,我得到/var/log/httpd/error_log , httpd无法启动: 您在标准HTTPS(443)端口上configuration了HTTP(80)! 除证书path之外,没有任何更改,并且在将httpd.conf更改回使用旧证书后,te问题消失。 什么可能导致这个?

文件权限:谁是我的Web服务器上的用户,组和其他人? 我应该使用什么样的上传文件,php文件等?

我使用cPanel与Apache 2和PHP 5.2。 我有一个file upload脚本,目前将上传的文件放在一个目录中,0777烫发,文件本身也有0777烫发。 这是因为与其他烫发,我会被抛出一个“无效的访问”错误。 所以,我应该使用什么样的文件夹以保证文件的安全,但是当用户想通过我的下载脚本下载文件时仍然可以访问这些文件?