在具有30GB内存的服务器上,服务器的stream量较高。 出于某种原因,最近Apache2已经开始运行疯狂的内存使用线程。 每线程500MB-750MB现在并不less见。 php.ini有memory_limit = 128M (默认是php7.0)。 Apache preforkconfiguration是默认值。 结果就是我们只能运行〜1GB的空闲内存。 我错过了什么? 我们有Nginx的代理请求,它的进程更像每个线程约60MB。 这里是运行top的截图 热门截图 任何洞察到什么可能是驾驶这个赞赏!
我试图从我的webroot从我的服务器中的文件夹访问文件。 但是,该文件夹存在于我的webroot之外。 例如,我/mystuffs/myphoto.png http://example.com/mystuffs/myphoto.png那样访问/mystuffs/myphoto.png 。 我必须通过.htaccess来做到这一点。 我无法编辑http.conf或添加符号链接。 可以这样做吗? 如果是的话如何?
我已经在我的apache服务器的/path上安装了一个php应用程序(dokuwiki),但是我希望在某些/ mydirpath上提供一些不同的文件(不同于dokuwiki的文件)。 目前,/ mydir只是在我的dokuwiki安装中popup一个不存在的页面,但是我希望在这里提供与dokuwiki内容非常不同的内容。 我在我的服务器上安装了dokuwiki在/ var / web / dokuwiki并且我的文件希望在/ var / www / mydir 有没有办法configurationApache服务我的文件,而不会干涉dokuwiki和viceversa? 目前的dokuwiki重写规则生活在.htaccess: ## Enable this to restrict editing to logged in users only # You should disable Indexes and MultiViews either here or in the # global config. Symlinks maybe needed for URL rewriting. Options -Indexes -MultiViews +FollowSymLinks # make […]
我有一个SMB文件共享在我的本地networking上。 我将所有的网站存储在这台服务器上。 我有另一台运行CentOS的服务器托pipe一个Apache Web服务器。 你将如何创build一个指向SMB分享的虚拟主机? SMB服务器的path是smb://10.0.0.177/fms%20studios/Websites 。 这是我目前在我的httpd-vhosts.conf文件中。 <VirtualHost *:80> ServerAdmin [email protected] ServerName tree.fmsds.xyz ServerAlias www.tree.fmsds.xyz DocumentRoot "smb://10.0.0.177/fms%20studios/Websites/" <Directory "smb://10.0.0.177/fms%20studios/Websites/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
我的Ubuntu服务器上运行的Nagios3偶尔会向我发送类似以下内容的电子邮件报告: Notification Type: PROBLEM Service: Current Load Host: localhost Address: 127.0.0.1 State: CRITICAL Date/Time: Mon May 22 00:14:54 CEST 2017 Additional Info: **CRITICAL – load average: 3.57, 21.36, 15.40** (通常我会收到三封电子邮件,警告,关键,恢复,每天两次,正常工作时间) 我该如何调查哪个服务导致这个问题,以及如何跟踪什么时候发生了什么? (我怀疑一些Apache运行的网站,哪一个?实际上是哪个url?)
我想知道什么步骤需要在ssllabs.com的每个类别100%。 我知道这可能会导致旧系统的问题,但我不在乎。 我的letsencrypt.org证书使用4096位。 这是我可以得到使用以下configuration的最好成绩: SSLCipherSuite AES256+EECDH:AES256+EDH:!aNULL SSLHonorCipherOrder on SSLProtocol all -TLSv1.1 -TLSv1 -SSLv3 -SSLv2 我读了一个地方 ,可以使用预生成的dhparam文件改进密钥交换。 所以我使用openssl dhparam -out dhparam.pem 4096 (这需要大约一个小时)生成这个文件,并将其添加到我的apacheconfiguration使用 SSLOpenSSLConfCmd DHParameters "/etc/ssl/certs/dhparam.pem" 但是结果与之前相同。 那么我在这里错过了什么? 完整ssllabs.com结果
我有一个域名betasquirrel.com从GoDaddy购买和VPS与Ubuntu 16.04。 我使用BIND9成功托pipe域名如下: 在Apache中为betasquirrel.com创build虚拟主机并放置这些文件。 接下来通过指向VPS IP地址在GoDaddy中创build了两个主机ns1.betasquirrel.com和ns2.betasquirrel.com 。 接下来configurationBIND9, /etc/bind/zones/master/db.betasquirrel.com ; ; BIND data file for betasquirrel.com ; $TTL 3h @ IN SOA ns1.betasquirrel.com. admin.betasquirrel.com. ( 1 ; Serial 3h ; Refresh after 3 hours 1h ; Retry after 1 hour 1w ; Expire after 1 week 1h ) ; Negative caching TTL of 1 day […]
我怎样才能解决这个问题? 我正在使用另一个EC2实例的图像的Amazon EC2: ubuntu@ip:~/LabelMeAnnotationTool-master$ sudo apt-get install apache2 Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: apache2-bin apache2-data Suggested packages: apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils The following packages will be upgraded: apache2 apache2-bin apache2-data 3 upgraded, 0 newly installed, 0 to remove and 269 not upgraded. […]
我有一个托pipe在Ubuntu 16.04的非托pipeVPS服务器上的域我已经configuration了我的Java EE Tomcat Web应用程序在我的域名。 但是,应用程序的响应时间太慢,逐渐趋向于浏览器中的超时。 如果我停止apache2服务,并通过域名访问我的web应用程序:8080的web应用程序的性能是完美的。 你如何正确configurationapache2提供良好的性能的域名的tomcatnetworking应用程序? 我意识到,简单的解决scheme是链接到我的web应用程序的所有引用到域:8080,但我想知道如何正确configurationapache2提供的域名与Tomcat的web应用程序相同的性能使用域:8080 。 在此先感谢您的帮助。 这是我的apache2网站可用的文件的域名: <VirtualHost *:80> # Admin email, Server Name (domain name) and any aliases ServerAdmin [email protected] ServerName lae-laeweb.com ServerAlias www.lae-laeweb.com # Index file and Document Root (where the public files are located) DirectoryIndex index.html DocumentRoot /var/www/html # Custom log file locations LogLevel warn ErrorLog /var/log/apache2/error-lae-laeweb.com.log […]
昨天晚上,我的论坛以DDOS攻击的forms成为了DDOS攻击的受害者。 我已经确认这是一个HTTP Flood。 我做的第一件事就是让CloudFlare检查你的浏览器。 它阻止了大量的请求,并且apache再次开始响应。 接下来,我在MyBB上看到一条消息,说MySQL连接太多了。 所以我停止了Apache和MySQL。 我继续解除连接限制到10,000是否我的web服务器能够处理的事情是另一个问题,但限制不会再导致错误。 接下来,我开始MySQL然后Apache。 攻击只有200个连接在这一点上,由于整个检查您的浏览器的东西。 之后,我调整了AWS的防火墙设置,只允许来自CloudFlare IP范围的连接。 并保存设置 此时该网站已经备份。 我是否错过了任何步骤。 如何在将来阻止HTTP洪水攻击?