On Friday 08 June 2012 18:19:10 Paul Hartman wrote: > What version are you on? Are both servers running the same version?
The remote server is 2.2.20 and I'm on 2.2.22-r1 > See here for the upgrade guide: > https://httpd.apache.org/docs/2.4/upgrading.html Useful for later, when I need to - thanks. > The most confusing/frustrating thing with Apache and trying to Google > for information is that the configuration changes so much from one > version to another, and often times the article doesn't mention which > specific version they are talking about (I still encounter a lot of > tutorials from Apache 1.x). There are also differences depending on > whether you're using virtual hosts or not, chroots, distro-specific > stuff like webapp-config. No virtual hosts, chroots or any complicating factor that I can think of. Webapp-config is installed here but I haven't used it. When I rsync'd my site to /var/www/localhost/htdocs on the local server, Apache wouldn't display any images, saying that I didn't have permission. All files had the same ownership so something must be awry in the server config. So I moved the site from there to ~/public_html where it works properly apart from the included file I mentioned. On second thoughts, I see the .htaccess file, which was missing from the local server, has a rewrite rule referring to images. Does that explain this problem? > If you want help with the specific error I would suggest posting the > contents of the .htaccess file and which version of Apache you're > using. Right, thanks! Sorry about the word-wrap. $ cat .htaccess RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://tideswellmvc.co.uk/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://tideswellmvc.co.uk$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.tideswellmvc.co.uk/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.tideswellmvc.co.uk$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC] Options +Includes $ -- Rgds Peter