我有一个WordPress的网站是在一个URL,我想redirect除了几个IP地址的所有stream量即将到来的types页面。 所以如果我有3个IP,这3个IP会看到当前的WordPress站点,所有其他的stream量将被redirect到一个特定的URL 这可能与Apache? 一些可以放在.htaccess文件中的东西?
我正在主办一个志愿者组织的网站。 我已经将网站移至WordPress,但并不总是如此。 我怀疑它曾经被黑客入侵过。 我的Apache错误日志文件在过去18个小时内已经增长到了122 kB。 logging的绝大多数错误都是这种forms的 – 今天在我的日志文件中重复了几百次: [Mon Nov 12 18:29:27 2012] [error] [client xx.xxx.xx.xxx] File does not exist: /home/*******/public_html/*******.org/calendar.php [Mon Nov 12 18:29:27 2012] [error] [client xx.xxx.xx.xxx] File does not exist: /home/*******/public_html/*******.org/404.shtml (我确认xx.xxx.xx.xxx是一个Google服务器。) 我怀疑在某个地方有一个安全漏洞,可能在calendar.php中被利用。 文件不再存在,但可能有很多反向链接存在,这就是为什么googlebot对抓取它们非常感兴趣。 我如何优雅地解决这个问题? 我仍然希望谷歌索引该网站。 我只是想告诉它不要再找这些文件了。
我有一个ruby的rails应用程序运行在apache2与phusion-passenger。 该应用程序完美地运行在本地可信networking上,但无法在我们的无线(不可信任)或任何外部networking上访问。 我可以ping外部networking上的服务器,但我没有得到任何访问默认页面或ssl页面的url。 我已经通过我们的networking服务确认防火墙上的所有内容都已正确configuration。 我目前已经设置通过https转发非安全stream量,configuration是: 默认: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www Redirect permanent / https://www.example.com/ </VirtualHost> 默认的SSL: <IfModule mod_ssl.c> NameVirtualHost *:443 <VirtualHost *:443> ServerName www.example.com ServerAdmin webmaster@localhost DocumentRoot /var/rails/example/current/public <Directory /var/rails/example/current/public> AllowOverride all Options -MultiViews RailsEnv production </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined SSLEngine on SSLCertificateFile /usr/local/ssl/public/certificate.crt SSLCertificateKeyFile /usr/local/ssl/private/example.key SSLCertificateChainFile /usr/local/ssl/crt/intermediate.crt <FilesMatch […]
我们有一个configuration的服务,必须每周进行一次维护,因为它依赖于ERP系统的故障。 我想知道Apache是否有可能停止向Tomcat转发请求,而是提供静态内容? 我想我可以做到这一点,通过设置一个cron工作到a2enable-site和a2disable-site分别通过有一个静态网站被切换到代理站点,虽然我想知道是否有一个不同的方法,我可以使用。 -Brett
我在Debian服务器上安装了Redmine,但我不知道如何正确configurationApache2,以便Redmine文件夹的内容和Redmine的起始页面都不会显示为我的网站的主页。 假设该网站的url是www.myexample.com。 当前状态 www.myexample.com显示/var/www/redmine文件夹的文件 用符号链接/var/www/redmine -> /usr/local/lib/redmine-2.1/public/ 想要的状态 www.myexample.com应该是我通常的网站主页(例如显示index.html) www.redmine.myexample.com或www.myexample.com/redmine应显示redmine页面 我想这只是一个configuration问题,但我不知道这个问题。 所以这里是我的configuration文件。 你看到我在这里失踪了吗? /etc/apache2/httpd.conf <VirtualHost *:80> ServerName redmine.example.com DocumentRoot /var/www <Directory /var/www> AllowOverride all Options -MultiViews </Directory> </VirtualHost> 在/ etc / apache2的/网站可用/pipe理平台 <VirtualHost *:80> DocumentRoot /var/www/redmine <Directory /var/www/redmine> AllowOverride all Options -MultiViews RailsBaseURI /redmine </Directory> </VirtualHost> 在/ etc / apache2的/网站可用/默认 <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot […]
我正在试图在我的MediaTemple DV机器上安装composer php(虽然说实话我真的不知道它是如何工作的,文档看起来相当差)。 我正在使用他们的指示 尝试使用以下方法全局安装: $ curl -s https://getcomposer.org/installer | php 我的命令行(再次使用putty并以root身份login到我的服务器)想了一会儿,然后设置为下一个提示。 我运行一个简单的ls -l来检查它应该下载的文件,但没有运气。 任何想法可能会导致这个问题? 我已经testing,实际上已经安装了curl。 更新1 基于第一个答案,详细的回答是: $ curl -vs https://getcomposer.org/installer | php * About to connect() to getcomposer.org port 443 * Trying 37.59.4.156… connected * Connected to getcomposer.org (37.59.4.156) port 443 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * […]
我使用的是hostextinfo语句,以便在我的地图中显示图标。 例如: define hostextinfo { hostgroup_name apple-devices icon_image base/apple.png icon_image_alt Apple vrml_image apple.png statusmap_image base/apple.gd2 } 这很好。 但是,当我使用以下语句来使用存储在htdocs/images/logos/symbols而不是htdocs/images/logos/base ,它不起作用,并且将显示一个询问点商标。 define hostextinfo{ hostgroup_name network-devices icon_image symbols/switch.png icon_image_alt Switch vrml_image switch.png statusmap_image symbols/switch.gd2 } 到目前为止,这是我所尝试的: 我已经确保validation文件存在,并且他们有适当的权限。 我也尝试使用浏览器中的地址直接显示图像。 我注意到http://obfuscated.net/nagios3/images/logos/base/正在返回403 Forbidden但http://obfuscated.net/nagios3/images/logos/symbols/正在返回404 Not Found 。 我已经查看了apache2.conf和cgi.cfg文件来找出没有成功的图像权限。 编辑这里有一些列表来显示文件的权限。 我无法看到base和symbols之间有什么不同 /usr/share/nagios/htdocs/images/logos# ls -l . total 64 drwxr-xr-x 2 root root 12288 Nov […]
我在Apache上有一个使用WordPress的Debian,它会不时地加载负载,导致挂在整个服务器上。 我已经玩了一些Apache的configuration参数,以使其更加稳定,但问题仍然存在,虽然比以前更less。 我现在要做的是触发阿帕奇儿童大屠杀在瞬间加载命中… 20例如。 我怎么做?
在我的服务器(Apache2,Ubuntu 10.04)上, wpsa是我的webroot中的一个目录。 当访问url mysite.com/wpsa时,当请求的文件是一个目录时不应该发生的ReWriteRule运行。 这些是我的规则: RewriteCond %{REQUEST_URI} !^/index.php$ RewriteCond %{REQUEST_URI} !^/$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* /000_ROUTE.php [L] 这是从重写日志: applying pattern '.*' to uri '/wpsa/' RewriteCond: input='/wpsa/' pattern='!^/index.php$' => matched RewriteCond: input='/wpsa/' pattern='!^/$' => matched RewriteCond: input='/wpsa/' pattern='!-f' => matched RewriteCond: input='/wpsa/' pattern='!-d' => matched rewrite '/wpsa/' -> '/000_ROUTE.php' local path […]
我真的需要会话复制吗? 我正在为一家公司开发一些Web项目。 大部分的项目大概是一两页的input,然后保存到一个mysql数据库。 非常基本的项目。 我的SA正在努力尝试在JBoss中获得会话复制的工作,但是我并没有真正看到它的任何需求和所有的开销。 我们需要负载平衡和集群,所以如果服务器停机,我们可以将新的请求移动到备份服务,但我不会在会话复制中大。 这是非常低的量项目。 在我看来,当服务器停留在一两页时,用户在项目中的几率是多less。 我需要说服SA在这种情况下会话复制是不必要的复杂性。 我正在寻找会话复制的优点和缺点,以便更好地构build我的观点。