我有一个单一的域名。 我昨天将我的名称服务器移到了AWS R53上。 这是Alogging,别名是我的ELB> EC2。 不过,有时候,大部分都会在子域上退出。 它只是无法find。 此外,似乎只发生在子域名…我得到非常缓慢的答复。 这不是EC2相关的www。 反应速度超快。 而我的抄送网站在其他地方也可以正常工作,也就是R53在正常速度下正常加载。 我已经做了HTTP头和监控日志,直到它明显开始加载,没有任何东西击中框。 所以,这显然是在DNS领域。 我不是一个伟大的数据包嗅探器,所以看着Wireshark / Ethereal日志,我只能看到whois,然后标准查询到域。 有点混乱,以了解发生了什么事情。 任何build议或指针,试图解决这个问题,将不胜感激。
我正在用Apache2运行一个Debiannetworking服务器,重启命令开始给我一个错误。 root@srv:~# service apache2 stop Stopping web server: apache2. root@srv:~# service apache2 start Starting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log […]
我在Linode上运行Apache。 我最近转移到Lighttpd并删除Apache,现在每当我尝试安装任何应用程序,我得到以下错误。 ivineet:~# apt-get install subversion Reading package lists… Done Building dependency tree Reading state information… Done You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: libapache2-mod-php5: Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or apache2-mpm-itk but it is not going to […]
我正在运行一个Ubuntu 10.04 LTS,Apache版本2.2.14。 在httpd.conf中,我有一个重写规则,如下所示: RewriteRule (*UTF8)^/users/([^/])([^/]+)/(.*)$ /users/$1/$2/$1$2/$3 [L] 这个想法是在我的服务器中将目录设置为国际化域名(IDN)。 我不断收到 RewriteRule: cannot compile regular expression 任何想法,如果这是恶魔版本或别的东西?
我有一个客户端软件,调用和安装在同一台机器上的Apache HTTP服务器。 在调用apache之前logging日志条目: 2011-11-23 13:27:43,777 | 8323|1381677376 | root | DEBUG | Calling http://mydomain.com/api/project/325/postings/add_and_remove_labels 正如你所看到的,当地时间是13:27:43。 域mydomain.comparsing同一台计算机的外部IP。 但是,当我看access.log文件,我说时间戳记[1]是5秒后的日志条目: [23/Nov/2011:13:27:48 +0100] "GET /api/project/325/postings/add_and_remove_labels 这是一个以守护进程模式运行的mod_wsgi基本服务器,但我不确定它是否相关(如果请求在apache级别,则时间戳应该是开始的)。 我怎样才能最好地找出这5秒的来源? 欢呼声,波阿斯 澄清:[1] – 时间戳是请求开始的时间 。 当请求结束时,条目是写入日志的,但是时间是请求开始的时间。
如果这是一个基本问题,我提前道歉,但是在阅读Apache文档和其他教程后,我感到非常困惑。 一个Apache prefork进程是否为给定的客户端提供所有的HTTP请求? 这就是我的想法,但是当我将maxclient减less到一个较低的数字时,我的页面加载时间就被抓取了。 尽pipe事实上我是服务器上唯一的客户端。 这将build议每个进程一次提供一个HTTP请求,而不是在TimeOut窗口内提供所有请求。 因此,如果单个网页需要15个HTTP请求才能完全加载,那么是否需要15个prefork Apache进程才能最佳地提供服务?
我已经configuration了Apache虚拟主机在端口8000上运行,而在Apache之前我在端口80上有了Varnish。问题是如果我把它粘贴到我的浏览器中: example.com/a_directory 我被redirect到example.com:8000/a_directory 我得到一个无法连接错误。 在configuration文件中我有这个: <VirtualHost *:8000> ServerAdmin [email protected] DocumentRoot /var/www DirectoryIndex index.php index.html index.htm <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www> AllowOverride All </Directory> # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined </VirtualHost>
我正在通过mod_passenger在Passenger上运行的Ruby on Rails XML-RPC Web服务运行Apache Bench。 当我运行1000个没有并发的请求时,一切正常。 Bench表示所有请求都成功完成,没有失败。 当我再次以并发级别2运行Bench时,由于内容长度的原因,请求开始失败。 使用并发时,我看到70-80%的失败率。 这不应该发生。 我发送到Web服务的请求应始终导致相同的响应。 我用cURL来validation事实是这样的。 我的Rails日志也没有显示任何错误,所以我很好奇看看Bench实际收到什么内容,并将其解释为失败。 有什么办法打印这些失败?
我在Ubuntu上。 我使用一个truecrypt容器来存储我所有的工作文件。 我的Apache服务器运行用户www-data (默认设置)。 当我使用truecrypt装载容器时,我的所有文件都由fmaz:fmaz拥有。 所以当我的PHP代码试图做一个chmod(),它失败 – 权限被拒绝。 所以我试图安装truecrypt卷如下所示: truecrypt –auto-mount=devices –fs-options="uid=33,gid=1000" 以及: truecrypt –auto-mount=devices –fs-options="uid=1000,gid=33" 当在文件夹上做ls -la时,我可以看到拥有的是有效的(www-data:fmaz或fmaz:www-data)但是这个组似乎没有被考虑到。 fmaz:www数据 我可以访问我的文件,但Apache / PHP无法与他们合作。 WWW的数据:fmaz Apache和PHP很开心,一切正常,但我无法访问我自己的文件: fmaz@fmaz-laptop:/$ cd media/truecrypt1/ bash: cd: media/truecrypt1/: Permission non accordée 但是你可以看到: sudo ls -la media/truecrypt1/ total 31448 drwx—— 14 www-data fmaz 8192 1969-12-31 19:00 . drwxr-xr-x 5 root root 4096 2011-12-03 11:10 […]
我想用mod_rewrite从http://www.server.com/directory/public重写到http://www.server.com/directory (其中目录然后指向目录/ public) 我尝试了几件事,但我无法弄清楚。 这是我的configuration: <VirtualHost xxx.xxx.xxx.xxx:443> ServerAdmin [email protected] ServerName www.server.com DocumentRoot /var/www/server.com <Directory /var/www/server.com> RewriteEngine on RewriteCond %{REQUEST_URI} ^/directory RewriteRule ^(.*)$ /directory/public/ [L] </Directory> </VirtualHost>