Apache2有一个内置的fastcgi替代品,叫做fcgid。 这很好,但它缺less我用来连接到PHP-FPM的FastCgiExternalServer指令。 我怎样才能做同样的apache2 fcgid模块? 我的目标是使用php-fpm与Apache2(在debian挤压)。
因此,当我尝试访问它时,有以下文件Adán-y-Eva-50×50.jpg ,apache将其转换为Ad\xc3\xa1n-y-Eva-50×50.jpg并且不会find它,即使它存在。 这只适用于包含UTF8字符的文件名。 我在/etc/httpd/conf/httpd.conf已经有了以下configuration … AddDefaultCharset UTF-8 … IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable +Charset=UTF-8 … 并添加到我的根.htaccess的第一行: IndexOptions +Charset=UTF-8 所有这些都无法加载这些types的文件。 有什么build议么? UPDATE 只要提一下:我正在使用plesk面板预configuration的CentOS服务器上运行网站
两个相关的问题。 除了awstats和webalizer之外,有没有好的apache日志分析器? 有没有错误日志分析器? – 标记
据我所知,我在Apache生产服务器上禁用了所有mod_proxy的东西。 什么是testing或确认的合理方法? 看看我的httpd.conf,我可以告诉你,任何具有“代理”的行都会被评论,这是值得的。 我想问的是我今天早上在我的logging报告中看到了这个东西: Connection attempts using mod_proxy: 81.88.124.30 -> 64.12.202.116:443: 1 Time(s) 81.88.124.30 -> 64.12.202.15:443: 1 Time(s) 81.88.124.30 -> 64.12.202.1:443: 1 Time(s) 81.88.124.30 -> 64.12.202.22:443: 1 Time(s) 81.88.124.30 -> 64.12.202.29:443: 1 Time(s) 81.88.124.30 -> 64.12.202.36:443: 1 Time(s) 81.88.124.30 -> 64.12.202.43:443: 1 Time(s) 81.88.124.30 -> 64.12.202.50:443: 1 Time(s) 81.88.124.30 -> 64.12.202.8:443: 1 Time(s) Requests with […]
在apache(access.log)的日志文件中,我find如下所示的日志条目: 10.20.30.40 – – [18/Mar/2011:02:12:44 +0200] "GET /index.php HTTP/1.1" 404 505 "-" "Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.01" 谁的意思是明确的:IP 10.20.30.40的客户端在/index.php(也就是说http://mysite.org/index.php )上使用GET HTTP方法,使用Opera作为客户端/浏览器接收状态码404 。 我不明白的是像这样的条目: 174.34.231.19 – – [18/Mar/2011:02:24:56 +0200] "GET http://www.siasatema.com HTTP/1.1" 200 469 "-" "Python-urllib/2.4" 所以在这里我看到的是,有人(IP为174.34.231.19的客户端)访问了http://www.siasatema.com并获得了200个HTTP状态码(?)。 这对我来说没有任何意义…我能想到的唯一解释就是我的apache服务器像代理一样行事! 这里有一些没有我的网站作为目的地的其他请求… 187.35.50.61 – – [18/Mar/2011:01:28:20 +0200] "POST http://72.26.198.222:80/log/normal/ HTTP/1.0" 404 491 "-" "Octoshape-sua/1010120" 87.117.203.177 – […]
我有一个ipv4地址和几个ipv6地址的服务器。 一个域被redirect到ipv4一个logging我设置了这样的Apache ports.conf: Listen ip.v4.address:80 NameVirtualHost ip.v4.address:80 和虚拟主机文件: <VirtualHost ip.v4.address:80> DocumentRoot /var/www/first/ ServerName first.domain ServerAlias www.first.domain ErrorLog … CustomLog … </VirtualHost> 一切正常。 现在我想为第二个域创build新的虚拟主机与第二个IP。 我将第二个域redirect到ipv6 AAAAlogging,添加到ports.conf中: Listen [ip.v6.address]:80 NameVirtualHost [ip.v6.address]:80 创build新的虚拟主机文件: <VirtualHost [ip.v6.address]:80> DocumentRoot /var/www/second/ ServerName second.domain ServerAlias www.second.domain ErrorLog … CustomLog … </VirtualHost> 并重新启动Apache。 服务器启动时没有错误,但不起作用。 当我在浏览器中input第二个域时,找不到服务器。 当我input[ip.v6.address]网站显示。 任何帮助?
我有一台服务器从SSL端接负载平衡器获取一些stream量,在这种情况下,它通过端口80以http_x_forwarded_proto =“https” 我想要一个mod_rewrite规则,只允许直接的HTTPSstream量或转发的HTTPSstream量。 我到目前为止: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{HTTP:http_x_forwarded_proto} != https RewriteCond %{HTTP:http_x_forwarded_proto} != HTTPS RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 但我越来越 RewriteCond:坏标志分隔符 错误。 我需要纠正什么才能使这个工作,这是最好的方法?
在less数Apache服务器正在运行一堆使用HTTPS SSL证书的站点的环境中,应放置哪些证书? 在Debian或Ubuntu中,所有相关的文件应该放在/ etc / apache2 / ssl中? 还是有一些更适合这个的其他位置? 在同一台服务器上为多个网站select这些文件的位置时,应该解决哪些安全问题?
我需要一些帮助来分析Apache Bench的日志: Benchmarking texteli.com (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests Completed 600 requests Completed 700 requests Completed 800 requests Completed 900 requests Completed 1000 requests Finished 1000 requests Server Software: Server Hostname: texteli.com Server Port: 80 Document Path: /4f84b59c557eb79321000dfa Document Length: 13400 bytes Concurrency […]
在Vagrant的Ubuntu Precise64上运行Apache2。 当我尝试启动它时,它说: vagrant@precise64:/etc/apache2$ /etc/init.d/apache2 start * Starting web server apache2 * * The apache2 configtest failed. Output of config test was: AH00534: apache2: Configuration error: No MPM loaded. Action 'configtest' failed. The Apache error log may have more information. 但事情是,我的/etc/apache2/apache2.conf文件不要求MPM在任何地方! 我会粘贴在这里,但它会使一个巨大的职位… 我试图查找错误日志,但我无法find任何地方,无论是。 帮帮我? 编辑: apache2 -l给出了这个: vagrant@precise64:/$ apache2 -l Compiled in modules: core.c mod_so.c […]