我有一个网站设置使用nginxcaching。 以下是详细信息: fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=MYAPP:100m inactive=60m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; server { listen 80 default_server; listen [::]:80 default_server; set $no_cache 0; if ($request_method = POST) { set $no_cache 1; } if ($query_string != "") { set $no_cache 1; } if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") { set $no_cache 1; } if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in") { set $no_cache 1; […]
我有一个运行在Google Compute Engine实例上的WordPress网站,并且在Apache里面使用了SSL。 由于SSL和图像大小调整给这个实例带来了很大的压力,我build立了Google Compute Engine负载均衡器,在负载均衡器中设置了SSL并启用了CDN。 在Apache端,我禁用了*:443configuration,只剩下*:80configuration。负载均衡器现在接受端口443上的请求,并指向端口80上的实例。 <VirtualHost *:80> ServerAdmin [email protected] ServerName mysite.com ServerAlias www.mysite.com # Indexes + Directory Root. DirectoryIndex index.php index.html DocumentRoot /var/www/mysite/htdocs/ # Logfiles ErrorLog /var/www/mysite/logs/error.log CustomLog /var/www/mysite/logs/access.log combined </VirtualHost> 这工作,除了我现在得到混合内容错误,因为所有的资源仍然通过HTTP加载。 我现在尝试启用URL重写,以查看是否可以通过https访问所有内容: <VirtualHost *:80> ServerAdmin [email protected] ServerName mysite.com ServerAlias www.mysite.com # Indexes + Directory Root. DirectoryIndex index.php index.html DocumentRoot /var/www/mysite/htdocs/ # Logfiles […]
我在Amazon EC2实例上安装了Wordpress,并且无法使WP安装主题,插件等。例如,主题安装失败: Installation failed: Could not copy file. harmonic/404.php 我使用vsftpd并创build了一个名为wordpress的用户。 这看起来像一个文件权限问题,但我已经根据一些在线指令设置权限,并不能发现问题: [ec2-user@ec2 wordpress]$ ls -lah total 196K drwxr-sr-x 5 wordpress www 4.0K Aug 29 14:29 . drwxrwsr-x 3 root www 4.0K Aug 29 14:45 .. -rw-r–r– 1 wordpress www 418 Sep 25 2013 index.php -rw-r–r– 1 wordpress www 20K Mar 5 20:14 license.txt -rw-r–r– 1 […]
这里是我的.htaccess为WordPress的博客网站,使用它来redirectwww到非www <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://example.com%{REQUEST_URI} [R=301,L] RewriteBase /blog/ RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /([^/]+/)*index\.(html|php)\ HTTP/ RewriteRule ^(([^/]+/)*)index\.(html|php)$ http://example.com/blog/$1 [R=301,L] RewriteCond %{REQUEST_URI} /+[^\.]+$ RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] 但是当我尝试打开www.example.com/blog/时,会出现500个内部错误。 在日志中提到:由于可能的configuration错误,请求超过了10个内部redirect的限制。 如果需要,使用“LimitInternalRecursion”来增加限制。 使用“LogLeveldebugging”来获得回溯。 任何build议,我的.htaccess有什么问题 错误日志: [Tue Sep 13 08:49:52 2016] […]
我正在主持一个服务器,我想有一个/articles文件夹。 我想redirect所有的电话这个名字www.myserver.com/articles到另一台服务器上托pipe的wordpress。 我怎样才能做到这一点,使URL不显示浏览器正在使用不同的IP地址?
我试图在Fail2ban中创build一个failregex来查找这些行(和IP地址),但我不能写它。 我的日志行如下所示: [Thu Sep 22 10:28:32.215159 2016] [:error] [pid 1616] [client 83.143.240.13:54895] FastCGI:server“/var/www/cgi-bin/php5-fcgi-104.236.209.45-80- bloggerger.com“stderr:PHP消息:WPlogin失败,用户名:admin,referer: http : //blogginger.com/wp-login.php [Thu Sep 22 04:38:01.588441 2016] [:error] [pid 24937] [client 49.151.91.8:58121] FastCGI:server“/var/www/cgi-bin/php5-fcgi-104.236.209.45-80- bloggerger.com“stderr:PHP消息:WPlogin失败,用户名:admin,referer: http : //blogginger.com/wp-login.php 这是我在attack.conf中的failregex行: failregex = [[]client <HOST>[]] WP login failed.* 但它不起作用。 没有任何匹配。 什么是正确的failregex线find这些日志行? 谢谢!
我们将wordpress安装在不同path的根域子文件夹中,即使在位置使用root用户,wordpress安装仍会加载域网站的根目录。 server { listen 80; server_name domain.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name domain.com; ssl on; #ssl_certificate /var/www/certs/star.domain.com.cert; #ssl_certificate_key /var/www/certs/star.domain.com.key; ssl_certificate /var/www/certs/cert_chain.crt; ssl_certificate_key /var/www/certs/__domain_com.key; ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM; return 301 https://www.$server_name$request_uri; } server { ## Default Server Settings include /etc/nginx/basic.conf; listen 443 ssl; server_name www.domain.com; access_log /var/log/nginx/domain.access.log; error_log […]
我在GoDaddy上有一个虚拟的共享托pipe计划。 我正在尝试在其上设置WordPress。 但是,每当我运行/wp-admin/install.php我收到一个内部500错误。 这会导致什么? 我完全失去了。 我不认为这将很难得到设置。 感谢您的帮助!
我主持一个WordPress的博客,并有一个奇怪的问题。 当我连接到服务器(编写本文时为http://71.65.199.125/ )时,它显示正确的标题,一半的下载栏,表示它已经收到了一些页面,然后它挂起正好150秒(定时两次),然后发送页面的其余部分,但没有样式表。 之后它无限期地挂起来,继续说“连接…”而没有取得任何进展。 如果你有什么线索可能会发生什么,或者我怎么能够打印PHP的debugging日志或者什么东西,看看它在寻找什么,在这个挂起时间,这可能会帮助。 最近改变了我做了:切换wordpress主题,但是我确实看到它与新的主题一次工作。 将服务器移动到另一个build筑物,具有相同的ISP和Linksys路由器转发设置。 我也添加了一个favicon.gif文件到/ var / www,但没有链接到任何wordpress页面。 我也有一个意料之外的电力中断。 系统信息:Ubuntu debian 9.04 Apache2 PHP 5 WordPress 2.9.2 谢谢
我在我的Win Server 2008 R2上使用WordPress。 当我尝试查看上传的图像时,出现错误500.所有小的预览图像都可以正常工作。 加工: /wp-content/uploads/2010/09/image-60×60.jpg /wp-content/uploads/2010/09/image-100×100.jpg … 不工作 /wp-content/uploads/2010/09/image.jpg 我已经检查过该目录,该文件存在。 当我用油漆打开该图像并保存而不进行编辑时,它开始工作,并且没有错误500了。 可能是什么问题呢? 上传时有什么东西打破了形象?