我在Apache错误日志中有成千上万的“文件不存在”。 奇怪的是,引用者是我的网站,当你查看源代码没有/图像的URL请求。 什么可能导致这个? [Sun Aug 28 03:15:31 2011] [error] [client 2.219.154.210] File does not exist: /var/www/oneclickrecruitment/public/jobs, referer: http://www.oneclickrecruitment.co.uk/jobs/construction-and-skilled-trades/electricians-and-part-qualified-electricians/ [Sun Aug 28 04:06:28 2011] [error] [client 207.46.12.121] File does not exist: /var/www/oneclickrecruitment/public/images, referer: http://www.oneclickrecruitment.co.uk/employers 这里最大的问题是我有fail-ban安装与Apache-noscript这意味着无辜的用户被阻止只是查看网站。 编辑:我仍然每个访问得到上述错误。 因此请帮助我解决这个问题的赏金的原因。 <VirtualHost *:80> ServerName oneclickrecruitment.co.uk ServerAlias www.oneclickrecruitment.co.uk www.oneclickrecruitment.com www.1clickrecruitment.co.uk www.1clickrecruitment.com DocumentRoot /var/www/oneclickrecruitment/public ErrorLog /var/log/apache2/oneclickrecruitment-error.log LogLevel warn CustomLog /var/log/apache2/oneclickrecruitment-access.log combined </VirtualHost> […]
我有一个Apache服务器,我在本地主机上运行。 根http://localhost应该去一个VirtualHost应用程序(Joomla!),而我想要http://localhost/test去第二个VirtualHost – 一个简单的index.htmltesting文件。 我相信我想为此用户mod_rewrite,所以我已经安装。 我有以下两个VirtualHosts定义(我使用Ubuntu 11.04): 根 <VirtualHost localhost> ServerAdmin webmaster@localhost ServerName localhost DocumentRoot /srv/joomla </VirtualHost> testing <VirtualHost localhost> ServerName localhost DocumentRoot /srv/test ServerPath /test/ RewriteEngine On RewriteRule ^(/test/.*) /srv$1 </VirtualHost> 但是,当我去http://localhost/test/index.html甚至http://localhost/test我得到一个404 。 我究竟做错了什么? 谢谢!
我想要做的是查看媒体播放器发送给Apache Web服务器的所有请求(使用HTTP的stream媒体video),当您寻求/暂停video时发生了什么。
我configuration了Apache使用UserDir部分,所以我可以创build用户 http://ip.add.re.ss/~username/这里指/home/username/public_html 问题是,当我去上面的url,我得到了403禁止。 我已经给/home/username/public_html文件夹是可写的检查,但我不明白为什么这将被禁止。 我是否缺lessApache或用户权限中的任何东西? 谢谢
我想从/ var / www / html / cgi-bin和/ var / www / html / s1 / cgi-bin执行cgi文件。 我目前在我的httpd.conf中有这个 Options Indexes FollowSymLinks ExecCGI ScriptAlias /cgi-bin/ "/var/www/html/cgi-bin/" # # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from […]
我正在运行一个Apache 2的Web服务器。 一切工作正常,但大约每14-20天我必须重新启动Web服务器,因为它不响应了。 看看慕尼黑的统计数字,我认识到,这与apache进程的数量有关。 他们不断增加,直到他们达到150.然后Apache没有回应。 我如何防止“冻结”阿帕奇? 这里是统计的截图: 细节: Apache在Debian 5.0根服务器上运行。 使用ISPConfig进行pipe理 我主持了大约30个网站 每天1000页的展示次数(所有网站的总和) 他们大多是Drupal的安装 一个Piwik安装所有网站 一些自定义PHP应用程序 日志和状态消息: 扩展的apache状态显示了这些行中的45个(通过SERVERNAME取代了真实的主机名)中的30个: 22-5 – 0/0/75 . 0.00 1813 0 0.0 0.00 1.17 ::1 SERVERNAME OPTIONS * HTTP/1.0 一些Apache设置(默认设置): prefork模块已启用 MaxKeepAliveRequests = 100 超时= 300 KeepAlive =开 KeepAliveTimeout = 15 MaxClients = 150 MaxRequestsPerChild = 0 StartServers = 5 MinSpareServers […]
我有我的.htaccess文件中的以下内容: <Directory /home/eamorr/sites/example.com/www> Options Indexes FollowSymLinks MultiViews Options -Indexes AllowOverride all Order allow,deny allow from all RewriteEngine on RewriteRule ^([^/.]+)/?$ index.php?uname=$1 [R,L] </Directory> 当我访问http://example.com/Eamorr时 , http://example.com/home/eamorr/sites/example.com/www/index.php?uname=Eamorr出现在地址栏中! 但我希望http://example.com/index.php?uname=Eamorr出现在地址栏中! (我需要在index.php中parsingjavascript中的URL)
我已经在Windows 2003服务器上搭build了Apache + Subversion的Subversion服务器。 我可以使用http检出,但不能使用https。 它说使用https地址时无法连接到服务器。 Svn版本是1.6.0 Apache版本是2.2.20我正在加载ssl模块。 我还设置了OpenSSL并启用了apache中的ssl.config文件。 我可以使用我的客户端使用netcat和端口443(与TCP),我被告知用于https使用我的服务器。 不知道还有什么要做,以及在哪里看。 为什么我无法使用https与TortoiseSVN连接到服务器? 但我可以用http做同样的事情吗? 谢谢你,奥弗。
我正在运行一个有100个站点的共享主机环境 – 我只是查看了apache加载/使用的所有模块,其中一些我不知道他们在做什么,或者他们是否有用。 。 core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) unique_id_module (shared) auth_basic_module (shared) auth_digest_module (shared) authn_file_module (shared) authn_alias_module (shared) authn_anon_module (shared) authn_dbm_module (shared) authn_default_module (shared) authz_host_module (shared) authz_user_module (shared) authz_owner_module (shared) authz_groupfile_module (shared) authz_dbm_module (shared) authz_default_module (shared) include_module (shared) log_config_module (shared) logio_module (shared) env_module (shared) ext_filter_module (shared) mime_magic_module (shared) expires_module (shared) headers_module […]
我花了一个半小时的时间,试图弄清楚如何在Lion的本地Apache服务器上运行虚拟主机。 在我的笔记本电脑上运行10.6,我可以通过在httpd.conf中取消注释来获得虚拟主机: # Virtual hosts #Include /private/etc/apache2/extra/httpd-vhosts.conf 然后在httpd-vhosts.conf文件中添加相应的块,并在/etc/hosts添加一个条目,如下所示: 127.0.0.1 foobar.local 由于某些原因,这不适用于10.7。 当去http://localhost/一切工作正常,但是当我尝试击中foobar.local它只是不断旋转,永远不会加载任何东西。 从命令行运行httpd -S显示正确的虚拟主机configuration,但这似乎并不重要。 本文中关于设置本地MAMP堆栈的方法对我也不起作用。 尽pipe有人报告说这个问题是由于IfDefine WEBSHARING_ON ,对于我来说,放置Include指令的位置并不重要。 有没有其他人有这个问题? 也许更重要的是,有没有人find一个解决scheme?