我使用httpd24-httpd-devel-2.4.6-16.el6.x86_64软件包来安装apxs bin。 我需要它用Apache模块编译PHP。 当我启动命令apxs –help出现以下错误: cannot open /httpd/build/config_vars.mk: No such file or directory at /opt/rh/httpd24/root/usr/bin/apxs line 214 我find这个文件到/opt/rh/httpd24/root/usr/lib64/httpd/build/ ,我应该将这个文件夹添加到我的PATH还是有办法告诉Apache看这个目录?
我试图用Apache 2.2.22静态HTML设置一个网站,但我得到一个500错误,而不是404。 错误日志中的消息是: [Sun Dec 14 09:48:45 2014] [error]由于可能的configuration错误,请求超出了10个内部redirect的限制。 如果需要,使用“LimitInternalRecursion”来增加限制。 使用“LogLeveldebugging”来获得回溯。 当我设置LogLeveldebugging我看到 [Sun Dec 14 09:48:45 2014] [debug] core.c(3112): r->uri = /home/nxad/index.php [Sun Dec 14 09:48:45 2014] [debug] core.c(3118): redirected from r->uri = /home/nxad/index.php [Sun Dec 14 09:48:45 2014] [debug] core.c(3118): redirected from r->uri = /home/nxad/index.php [Sun Dec 14 09:48:45 2014] [debug] core.c(3118): redirected from […]
我问自己最好的办法是阻止某些IP地址(或来自中国,韩国等国家的整个块)访问我的apache2 web服务器。 我知道使用的方法 Allow from apache.org Allow from .net example.edu 和这样的事情,但如果我认为正确的话,他们只能在<Directory> (和<Files>或<Location> )中定义。 有没有适当的方式来处理整个服务器的访问控制?
请参阅puppetmaster.conf和dashboard-vhost.conf文件的要点 。 我有我的Puppetmaster(3.7.3)在Apache和Passenger端口TCP / 8140下运行在CentOS 6.5上。 它工作正常。 但是我的Puppet仪表板也运行在80端口的Passenger下,当我浏览到端口80上的服务器IP /主机名时会产生这个错误: The environment must be purely alphanumeric, not '' 如果我从/etc/httpd/conf.d删除了puppetmaster.conf文件,我可以浏览到仪表盘。 当我把它放回去,我得到的错误。 我已经研究过这个,而且我发现的所有东西在有人在端口8140上浏览到Puppetmaster的上下文中显示了这个错误,尽pipe我正在浏览端口80.我感觉我正在寻找错误的地方。
我正在尝试设置一个将xyz.mycompany.com路由到/ var / www / html / development / xyz / public的apache虚拟主机文件 这是我的硬编码版本。 有没有办法用variables交换“xyz”? <VirtualHost *:80> ServerName xyz.mycompany.com ServerAlias xyz.mycompany.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html/development/xyz/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/html/development/xyz> AllowOverride All Options -Indexes +FollowSymLinks +MultiViews Order allow,deny Allow from all </Directory> </VirtualHost>
我有一个ec2 c3.medium实例运行。 它最近开始最大化的CPU使服务器无响应。 重启实例并没有太长的帮助,虽然它确实让Apache服务器站点再次运行了一个小时左右。 当我看到顶部时,我可以看到各种Apache进程正在运行,这在10和1之间波动,这些CPU使用率的波动高达30%左右。 当它最大的是这些Apache进程是问题/ 我怎样才能找出驱动这些过程的是什么? 这里的顶部总结的快照 top – 16:06:32 up 33 min, 2 users, load average: 1.80, 1.67, 2.13 Tasks: 87 total, 2 running, 85 sleeping, 0 stopped, 0 zombie Cpu(s): 55.4%us, 2.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 42.0%st Mem: 3842540k total, 1698436k used, 2144104k free, 87556k buffers Swap: 1048572k total, 0k used, […]
Apache虚拟主机文档说: You can alternatively specify an explicit IP address in place of the * in <VirtualHost *:80> directives. For example, you might want to do this in order to run some name-based virtual hosts on one IP address, and either IP-based, or another set of name-based virtual hosts on another address. 这些虚拟主机块在明显有1个IP地址的服务器上执行。 为什么有必要在这些VirtualHost指令中提及不同的IP地址? 谢谢
我在ModSecurity中出现一个反复出现的“失败的删除集合”错误消息时遇到了一些问题( 有关上下文,请参阅此讨论@GitHub )。 在讨论这个错误时,经常会提出SecCollectionTimeout指令可能会有一些影响。 阅读文档我只知道这个指令: 指定收集超时。 默认值是3600秒。 但是,我不完全了解“收集超时”是什么。 有人可以向我解释这个设置是什么吗? 提前谢谢了。
我有一个: 从源安装的Apache Kafka(2.9.2-0.8.1.1)的单个实例,使用默认configuration( server.properties等), Zookeeper(3.4.5 + dfsg-2)独立安装,从软件包安装 运行一个名为hostname1的Ubuntu 14.04 LTS主机。 我尝试干净closures卡夫卡,但我不能。 我试过2种方法: 发送SIGINT – 但卡夫卡只是忽略它(没有提到在任何日志接收信号,继续运行)[SIGTERM的作品,但这不是重点] 使用受控closures工具 – 但它失败,以下.. ..堆栈跟踪: [2015-02-03 12:55:49,461] ERROR Operation failed due to controller failure (kafka.admin.ShutdownBroker$) java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: hostname1; nested exception is: java.net.ConnectException: Connection refused] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268) […]
我在Apache服务器(例如http://www.example.com )上托pipe多个网站,其中只有一个网站具有SSL证书(例如https://www.example.net )。 是否可以设置Apache,以便尝试浏览到https://www.example.com不会导致Apache服务https://www.example.net ? 如果是这样,怎么样? 我问这是因为我的托pipe服务提供商说: …如果SSL连接尝试到服务器上的任何IP,并且没有可用于该域的SSL虚拟主机,则连接到列出的第一个可用的SSL虚拟主机。 …如果机器上有多个SSL虚拟主机,当它们不匹配时,会自动连接到httpd.conf文件中显示的第一个。