Articles of apache 2.2

错误502 – 随机SSL库错误:336151568错误:14094410

我正在面对我的networking服务器上的一个随机的502错误。 率 :0.5% 我的日志中出现错误 :SSL库错误:336151568错误:14094410:SSL例程:SSL3_READ_BYTES:sslv3警报握手失败 OpenSSL版本 :OpenSSL 1.0.0-fips 2010年3月29日 networking我无法发布图像,所以这是一个链接到我的networking的计划: http : //i.stack.imgur.com/oOOnL.jpg和与另一个主机相同的图像: http : //s28.postimg.org /q9012t8l7/error502.jpg 一些细节 : 我在tomcat 7.0.37上托pipeJEE应用程序 当有人试图连接到其中一个应用程序时,他连接到我的路由器的外部IP。 路由器将他redirect到我的DMZ。 DMZ上的Apacheconfiguration <VirtualHost *:443> ServerName www.myapp.fr ServerAlias myapp.fr RedirectMatch ^/$ /CRA ProxyRequests Off SSLEngine on SSLProxyEngine on SSLCertificateFile /etc/ssl/certs/www.myapp.fr.pem ProxyPass / https://myapp.fr/ ProxyPassReverse / https://myapp.fr/ LogLevel info CustomLog "|/usr/sbin/rotatelogs /var/log/httpd/myapp.fr/SSL.myapp.fr_access.%Y-%m-%d.log 5M" combined ErrorLog […]

隐藏的WebDAV文件夹在Windows中安装时不隐藏

是否有一个特定的设置为Apache隐藏当前用户不可读的文件夹? 虽然我很清楚,使用浏览器列出目录时,此function是完美的工作,但不幸的是,用户使用Windowsfunction执行相同的任务时并不是这样。 列出所有不可读的文件夹,至less可以访问 – 尽pipe不可读取或写入它们。

Apache反向代理不断要求基本的身份validation凭据

我在Hawtio (一个Karaf托pipe的JVMpipe理控制台)前面configuration了Apache。 尽pipeHawtio由Jetty提供服务,并受到Karaf的JAAS实现的保护,但我们希望Apache添加Basic Auth,以便我们可以额外确保它的安全,例如,使用Fail2Ban进行powershell攻击。 但是,尽pipe有这样的build议,Apache的基本身份validation不断popup,而不是只要求一次凭据。 在两次login请求后,Hawtio的login页面会被载入,但是,一旦你放入了Hawtio的login信息,Apache不断popup它的login页面。 我甚至已经走了20次,但仍然要求更多! 我错过了什么明显的? 这是我的configuration: <VirtualHost *:80> ServerAdmin admin@localhost ServerName hawtio.mydomain.com ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined # suppress rule checking for Hawtio stuff SecRuleRemoveById 950901 960010 970003 970014 981257 981318 981407 981205 981222 981240 981220 <Location /> ProxyPass http://application-server:8765/ ProxyPassReverse http://application-server:8765 AuthUserFile /etc/users AuthName "Restricted area" AuthGroupFile /dev/null AuthType […]

在Apache升级之后,带有WebDAV的SVN停止工作

我刚刚将我的Ubuntu 12服务器升级到了php 5.5.7,而后者又自动将我的Apache安装升级到了2.4.6。 升级之后,我之前安装的使用WebDAV运行的SVN现在停止工作了。 当我尝试安装subversion和libapache2-svn时,我得到以下内容: root@Svr01:/# apt-get install subversion libapache2-svn Reading package lists… Done Building dependency tree Reading state information… Done subversion is already the newest version. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages […]

Apache的URLredirect可以向原始URL和重写的URL发送请求吗?

我想使用Apache的URLredirect来匹配一个URL,并将请求转发给另一个URL。 很简单,我知道。 但是,我希望继续调用最初请求的URL以及重写的URL。 这可能使用Apache的URL重写设施? 或者URL重写受到限制,始终用重写的URLreplace原始URL? 谢谢

prefork似乎没有听configuration文件中的MaxClients

提前道歉,如果这是一个愚蠢的问题,我是新来的这一切! 我prefork安装在我确认通过运行的Ubuntu服务器上 aptitude search apache2-mpm- 哪给了我 p apache2-mpm-event – Apache HTTP Server – event driven model p apache2-mpm-itk – multiuser MPM for Apache 2.2 i A apache2-mpm-prefork – Apache HTTP Server – traditional non-threaded model p apache2-mpm-worker – Apache HTTP Server – high speed threaded model root@redflagwiki:/etc/apache2/sites-enabled# vi /etc/apache2/apache2.conf root@redflagwiki:/etc/apache2/sites-enabled# aptitude search apache2-mpm- p apache2-mpm-event […]

与503错误和laggs的Apache

我注意到,有时从客户的页面完全laggy或没有build立(错误503出现),而其他方面继续运行pipe理界面也仍然在线。 我的提供商告诉我,通过命令“顶部”我可以找出哪个客户是。 我现在也被发现,哪个用户/ WEB现在导致这些问题。 在Apache2的“default-error.log”中,我现在已经find了以下条目: Premature end of script headers: index.php, referer: https://XXX.in/index.php?rulesAgree=1&pa…n=register (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: https://XXX.in/index.php?rulesAgree=1&pa…n=register SIGUSR1 received. Doing graceful restart Apache/2.2.16 (Debian) mod_fcgid/2.3.6 mod_ssl/2.2.16 OpenSSL/0.9.8o configured — resuming normal operations mod_fcgid: can't apply process slot for /var/www/fcgi/XXX.in/php5-fcgi-starter, referer: XXX.in/index.php?page=Index 现在我想我自己有时候/ etc / apache2 / […]

获取根目录本身时,Apache 2.0 ErrorDocument指令不起作用

我负责在Red Hat 4.1.2上使用Apache 2.0的网站。 我已经configuration站点来显示一个自定义的错误页面,把这一行添加到站点根目录下的.htaccess文件中: ErrorDocument 403 /403.html 为了testing,我在网站应用程序中封锁了我自己的IP地址; 这在.htaccess文件中产生了这样的结果(为了简洁起见,我编辑了列表并修改了IP): SetEnvIfNoCase REMOTE_ADDR "^(0\.0\.0\.1|0\.0\.0\.2|0\.0\.0\.3).*" BadIP deny from env=BadIP 当我尝试从“糟糕的”IP访问网站时,如果我尝试获取特定页面(例如http://example.com/index.html ),则会出现自定义错误页面。 但是,如果我尝试获取根目录(例如http://example.com ),那么我将获得Apachetesting页。 有没有办法让网站的根目录与自定义错误页面一起工作? 编辑:我想我可能会造成一些困惑。 澄清: 当我尝试获取根url时, 不会提供根网页; 我得到的是这样的页面:“如果你能阅读这个页面,这意味着安装在这个站点上的Apache HTTP服务器正常工作。” 所以我按预期阻止,但我只是没有得到403错误页面。 当我试图得到根之下的任何东西,我得到我的自定义403.html页面 更新 : 我已经尝试了更新的Apache版本(2.2.25)。 我也尝试过没有 ErrorDocument指令或SetEnv的东西。 .htaccess文件只包含这3行: order allow,deny allow from all deny from 0.0.0.0 其中0.0.0.0被我的实际IP地址取代。 结果是一样的:当获得example.com时,我得到了Apache“如果你可以阅读这个”testing页面,当获取example.com/x时,我得到内build的“禁止…你没有权限访问此服务器上的/ x“页面。

Apache2:使用符号链接的目标名称进行Content-Type映射

我正在开发一个Web应用程序,它需要在静态URL上提供大量持续更新的文档,但文档的内容types不同(它可能是JPEG或SVG)。 如果文档是符号链接,则链接末尾的文件具有用于MIMEtypes映射的正确文件扩展名,但是在查看扩展之前,我无法确定是否有可能让Apache遵循链接在MIME表中。 这个问题提出了同样的问题,但是提供的解决方法对我不起作用,因为如果我提供image / jpeg(它们自动检测GIF和PNG),浏览器不会自动检测SVG,所以我需要一个适当的MIMEtypes。 通常情况下,我会使用.meta文件和mod_cern_meta ,但是我的目标Linux发行版(Fedora 19/20,RHEL 7)没有这个function,我想避免自己提供。 我不认为我可以使用mod_headers,因为它需要我重写整个.htaccess文件(文件被单独更改),也不需要mod_asis,因为数据文件本身是使用第三方工具生成的。 编辑 :我正在通过编写我的文件作为types映射(只有一个条目),指向实际资源并列出其内容types。 这意味着必须编写额外的文件,但使用mod_meta也是如此。 暂时工作得不错。

Apache ProxyPass不适用于nginx

我试图将Apache的VirtualHostconfiguration为nginx服务器的反向代理(所有当前的应用程序都使用Apache,而这个新的应用程序正在使用nginx的一些特定function)。 使用configuration: <VirtualHost ***.***.***.***:80> ServerAdmin **** ServerName **** ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8071/ ProxyPassReverse / http://localhost:8071/ <Location /> Order allow,deny Allow from all </Location> </VirtualHost> 与端口8071上运行的nginx / uwsgi(尝试curl它在服务器上,它的工作)。 但是,Apache仍然拒绝将请求路由到nginx。 有一些特定的设置,我需要更改或其他文件来编辑?