public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Peter Humphrey <peter@humphrey.ukfsn.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] How to set Apache up to serve SSIs?
Date: Tue, 9 Aug 2011 12:12:17 +0100	[thread overview]
Message-ID: <201108091212.18175.peter@humphrey.ukfsn.org> (raw)
In-Reply-To: <CAC=wYCG4VW3BBxGF=isM5DqHUmu8FAjGYkAa6+Y1144zSTmzSg@mail.gmail.com>

On Tuesday 09 August 2011 01:31:25 Adam Carter wrote:
> > Looks like that isn't my problem then. I have another head-scratching
> > opportunity...
> 
> Quick idea without proper investigation - building the modules is a
> different thing to actually loading them - they can be built but not
> loaded by the config, so obviously they wont work if that's what's
> happened.

Well, I do have this:

# cat /var/www/localhost/htdocs/.htaccess
RewriteEngine on

RewriteCond %{HTTP_REFERER} !^http://tideswellmvc.co.uk/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://tideswellmvc.co.uk$      [NC]
RewriteCond %{HTTP_REFERER} !^http://tmvc.myzen.co.uk/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://tmvc.myzen.co.uk$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.tideswellmvc.co.uk/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.tideswellmvc.co.uk$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.tmvc.myzen.co.uk/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.tmvc.myzen.co.uk$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Options +Includes

I added that last line; I don't know where the rest came from, unless from 
the production server at Zen Internet. Removing them all allows me to see 
the images in the pages, which were provoking permission errors before, but 
apache still doesn't process the SSI.

The alternative place for the Options line is in /etc/apache/<somefile>, but 
which? I don't have virtual hosting set up: this is purely a development 
environment for the remote production server.

What ownership permissions should the files under ..../htdocs have? As far as 
I can see this is typical of them all at present:

-rw-r--r--  1 prh apache 8.4K Aug  8 17:36 index.shtml
drwxr-xr-x  6 prh apache 4.0K Aug  7 17:24 pages

# groups prh
adm lp wheel floppy cdrom cdrw usb users portage plugdev apache prh

-- 
Rgds
Peter		Linux Counter 5290, 1994-04-23



  reply	other threads:[~2011-08-09 11:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-07 16:40 [gentoo-user] [OT] How to set Apache up to serve SSIs? Peter Humphrey
2011-08-07 18:07 ` Paul Hartman
2011-08-07 22:54   ` Peter Humphrey
2011-08-08 14:04   ` Peter Humphrey
2011-08-08 16:59     ` Paul Hartman
2011-08-08 17:27       ` Peter Humphrey
2011-08-08 18:46         ` Paul Hartman
2011-08-08 19:28           ` Peter Humphrey
2011-08-09  0:31             ` Adam Carter
2011-08-09 11:12               ` Peter Humphrey [this message]
2011-08-09 12:57                 ` Adam Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201108091212.18175.peter@humphrey.ukfsn.org \
    --to=peter@humphrey.ukfsn.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox