jputterg
Forum Replies Created
-
Forum: Plugins
In reply to: [Really Simple CAPTCHA] I think I know why CAPTCHA images are brokenI eventually solved the problem by adding two additional lines to my rewrite rules before the rule about wp-content
RewriteRule ^/uploads/(.*)$ /srv/www/wp-content/domain name/uploads/$1 [L,NC]
RewriteRule ^/wp-content/uploads/(.*)$ /srv/www/wp-content/domain name/uploads/$1 [L]That seems to work without breaking permalinks etc
Still having an issue getting WP-Super-Cache to work but will spend time on that over the week-endForum: Plugins
In reply to: [Really Simple CAPTCHA] I think I know why CAPTCHA images are brokenok I can do a symlink like this which works
ln -s /srv/www/wp-content/domain name/uploads/wpcf7_captcha /usr/share/wordpress/wp-content/uploads/wpcf7_captchahowever this excludes any other domains from using the plugin
I maintain a set of plugins and themes that are available to all however something I have done recently seems to have broken the individual sites access to their own uploads directory except when editing … Possibly in making permalinks work … can/t understand the rewrite module works correctly but apache is failing to go to the right directory
here is the my virtualhosts template
<VirtualHost *:80>
UseCanonicalName OffServerAlias DOMAIN
ServerName http://www.DOMAIN
VirtualDocumentRoot /usr/share/wordpress
DirectoryIndex index.php
Options All#To Place wp-content in /srv/www/wp-content/$0
RewriteEngine On
RewriteRule ^/wp-content/(.*)$ /srv/www/wp-content/DOMAIN/$1
RewriteRule ^index\.php$ – [L]# For permalinks to work
RewriteCond /usr/share/wordpress%{REQUEST_URI} !-f
RewriteCond /usr/share/wordpress%{REQUEST_URI} !-d
RewriteRule . /usr/share/wordpress/index.php [L]<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>#CustomLog /var/log/apache2/access.log vhost_combined
# this is needed when activating multisite, WP needs to to a
# fopen(“http://randomname.domain.com”) to verify
# that apache is correctly configured
php_admin_flag allow_url_fopen on</VirtualHost>
Forum: Plugins
In reply to: [Really Simple CAPTCHA] I think I know why CAPTCHA images are brokenI have a similar problem … I know what is happening but I cant fix
I run a Debian style multi-site server
which is a little different from the wordpress multisite.What is happening is that the captcha data is being written to a file in /srv/www/wp-content/domain name/uploads/wpcf7_captcha
while when rendering the page apache is looking for the file in
/usr/share/wordpress/wp-content/uploads/wpcf7_captcha …. which does not existMy rules are written into the individual website virtualhost conf files
Perhaps someone can suggest what I need to add