Articles of httpd

在远程升级后,httpd退出信号中止

经过很长一段时间,我们在我们的Debian生产服务器上进行了apt-get dist-upgrade,更新ofc并没有成功,因为它打破了一些服务, exim和httpd(重新启动后)/ Configs在更新时不会被覆盖。 httpd错误日志:… [Thu Jul 06 21:40:14.738185 2017] [core:notice] [pid 64478] AH00052: child pid 3955 exit signal Aborted (6) [Thu Jul 06 21:40:14.740261 2017] [core:notice] [pid 64478] AH00052: child pid 3957 exit signal Aborted (6) [Thu Jul 06 21:40:16.749335 2017] [core:notice] [pid 64478] AH00052: child pid 3960 exit signal Aborted (6) [Thu Jul […]

如何在CentOS7上首次启动Apache

我使用sudo yum update更新了yum,并安装了sudo yum install httpd 我编辑了httpd.conf,这样ServerName就是我远程login的Web服务器的IP地址。 当我尝试重新启动httpd using sudo service httpd restart我得到以下错误信息: httpd.service的作业失败,因为控制进程退出并显示错误代码。 有关详细信息,请参阅“systemctl status httpd.service”和“journalctl -xe”。 systemctl -l status httpd.service返回以下内容: httpd.service – The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2017-07-11 14:20:39 EDT; 1min 22s ago Docs: man:httpd(8) man:apachectl(8) Process: 3275 ExecStop=/bin/kill -WINCH ${MAINPID} […]

如何在syslog服务器中使用自定义名称来syslog httpd access.log

我configuration了error.log和access.log,以便在RHEL 7.2中将其redirect到/etc/httpd/conf/httpd.conf中的rsyslog服务器。 ErrorLog "syslog:local1" CustomLog "|/usr/bin/nc -u syslog.mydom.com 514" "<134>%{%b %d %X}t web1 apache %h %l %u %t \"%r\"%>s %b \"%{Referer}i\" \"%{User-agent}i\"" 我可以看到error.log和access.log都只logging到一个文件,即syslog.log但我想error.loglogging名称error.log和access_loglogging名称access.log只有在远程rsyslog服务器。 请让我知道,如果有更多的细节,我应该提供。

在Centos 7上用一个来自一个仓库的httpdreplace一个仓库中的httpd

我的问题是,我前一段时间安装了Virtualmin,然后我unistalled它,现在我有这个: > yum –showduplicates list httpd | expand Installed Packages httpd.x86_64 1:2.4.6-40.el7.centos.4.vm.2 @virtualmin Available Packages httpd.x86_64 2.4.6-45.el7.centos base httpd.x86_64 2.4.6-45.el7.centos.4 updates 有一种方法可以从@virtualmin repo中删除已安装的httpd版本,而不会丢失数据或重新安装依赖项并安装基本的httpd版本? 提前致谢

httpd故障转移在DRBD + Hearbeat上不起作用

我需要关于在心跳drbd中运行httpd服务的帮助。 它工作正常,但在heartbeat haresources中添加httpd服务后,drbd故障转移停止工作。 我正在使用DRBD 8.4版本。 以下是我的心跳configuration: /etc/ha.d/ha.cf文件 debugfile / var / log / ha-debug logfile / var / log / ha-log logfacility local0 autojoin none keepalive 2 deadtime 30 warntime 10 initdead 60 udpport 694 mcast eth0 239.0.0.6 694 1 0 bcast eth1 auto_failback off HA-Pri节点HA仲 在/ etc /的haresources HA-Sec IPaddr :: 192.168.0.10/24/eth0 drbddisk :: […]

具有多个自签名证书的Apache服务器,从一个域向另一个域调用CORS时出错

我有两个域,(更改名称说)alpha.com和beta.com。 主域名alpha.com包含支付集成,核心平台域。 相反,beta.com是最终客户的UI模板所在的第三方域。 所以用户首先去beta.com,当它想要购买东西的时候,在内部,alpha.com被从该网页内部调用。 以下是httpd.conf的一部分 DocumentRoot "/var/www/html" Header always set Access-Control-Allow-Origin "*" Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" Header always set Access-Control-Max-Age "1000" Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, Authorization, accept, client-security-token, AKEY, APWD, LoginToken, MPWD, TimeStamp, device, version" # Added a rewrite to respond with a 200 SUCCESS on every […]

当Tomcat运行时,httpd不会启动

在CentOS 7上使用Apache的httpd和Tomcat时,我观察到一个问题。两者都运行在同一个主机上,都是从官方存储库安装的。 httpd使用mod_auth_mellon执行SAML,并在Tomcat中运行代理到后端Web应用程序。 初始状况: 这两个服务都停止了 第一个用例: systemctl启动httpd systemctl启动tomcat – >作品 第二个用例: systemctl启动tomcat systemctl启动httpd – >不起作用 错误信息: Aug 09 14:03:08 prod2.localdomain systemd[1]: Starting The Apache HTTP Server… — Subject: Unit httpd.service has begun start-up — Defined-By: systemd — Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel — — Unit httpd.service has begun starting up. Aug 09 14:03:09 prod2.localdomain systemd[1]: httpd.service: main process […]

NGinx窗口Auth_base失败

我在windows server 2012上设置了简单的nginx服务器(1.13.5)。我将它configuration为使用基本身份validation,如下所示: server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; auth_basic "Restricted"; auth_basic_user_file c:/Software/nginx-1.13.5/conf/password; } 但是,当我尝试在给定用户下login时,我在日志中获得以下logging: *5 user "admin" was not found in "c:/Software/nginx-1.13.5/conf/password", client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost" 这是我的密码文件: admin:$2y$05$ALMoM9YZU53aSsJh6uL.OuVLbb5GlkyjQMFi2FNcQDkaxftf5e9PW 现在这显然是NGinx中的一个bug。 使用MD5对密码进行散列,并且使用Apache htpasswd.exe创build该密码,并且从当前版本(并根据文档)进行散列。 只是可以肯定的是,我也尝试使用openssl的结果相同。 有没有人知道一个解决方法,或者甚至可以修复这个bug?

Apache Reverse proxy – ProxyPass在多个位置发生冲突

ProxyPreserveHost打开 <Location /stores/identityiq> ProxyPass https://ncdlxxxasa0002:8443/identityiq ProxyPassReverse https://ncdlxxxasa0002:8443/identityiq </Location> <Location /identityiq> ProxyPass https://ncdlxxxasa0002:8443/identityiq ProxyPassReverse https://ncdlixxxsa0002:8443/identityiq </Location> <Location /> ProxyPass https://ncdlxxxasa0002:8443/identityiq ProxyPassReverse https://ncdlxxxasa0002:8443/identityiq </Location> 我有以上三个Proxypass的基础上的位置。 第一个条件“/ stores / identityiq”获取输出上下文为“/ identityiq”,它被configuration为第二个代理传递的源。 所以,我终于被redirect到了第二个条件的ProxyPassReverse而不是第一个条件。 我的意图是 case1:如果Location / stores / identityiq / foo输出必须是/ stores / identityiq / foo case2:如果Location / identityiq / foo输出必须是/ identityiq / foo

Apache SSI不能与替代命令一起使用

我在我的httpd.conf中有一个虚拟主机,充当反向代理。 它工作正常,我能够取代文字与我想要的,但我想包括一个文件.. ServerName example.cm ServerAlias www.example.cm Options +FollowSymLinks Options +Includes RequestHeader unset Accept-Encoding RewriteEngine on RewriteRule ^example w [L] FilterDeclare CUSTOMFILTER FilterProvider CUSTOMFILTER SUBSTITUTE resp=Content-Type $* FilterProvider CUSTOMFILTER SUBSTITUTE resp=Content-Type $/html FilterDeclare Sub FilterProvider Sub SUBSTITUTE resp=Content-Type $text/html FilterDeclare SSI FilterProvider SSI INCLUDES resp=Content-Type $text/html <Location /> ProxyPass http://www.example.com/ ProxyPassReverse http://www.example.com/ AddOutputFilterByType SUBSTITUTE text/html Substitute […]