Re: [gentoo-user] Apache server setup

2012-06-26 Thread Michael Orlitzky
On 06/26/12 10:42, Peter Humphrey wrote: > > One decision that will have consequences is where in /var/www to put > mysite. Should it be in /var/www/mysite/htdocs, in > /var/www/localhost/mysite or in /var/www/localhost/htdocs/mysite? What > I've read so far suggests that it doesn't matter, but

Re: [gentoo-user] Apache server setup

2012-06-26 Thread Michael Mol
On Tue, Jun 26, 2012 at 10:42 AM, Peter Humphrey wrote: > On Tuesday 26 June 2012 09:07:14 Michael Orlitzky wrote: >> On 06/25/2012 07:36 PM, Peter Humphrey wrote: >> > I think (hope) I've found it: >> > http://en.gentoo-wiki.com/wiki/Apache2/Virtual_Hosts >> > makes it clear that a subdomain's de

Re: [gentoo-user] Apache server setup

2012-06-26 Thread Peter Humphrey
On Tuesday 26 June 2012 09:07:14 Michael Orlitzky wrote: > On 06/25/2012 07:36 PM, Peter Humphrey wrote: > > I think (hope) I've found it: > > http://en.gentoo-wiki.com/wiki/Apache2/Virtual_Hosts > > makes it clear that a subdomain's definition must /precede/ the > > domain's definition. I was doin

Re: [gentoo-user] Apache server setup

2012-06-26 Thread Michael Orlitzky
On 06/25/2012 07:36 PM, Peter Humphrey wrote: > > Good guess, but no cigar :-) > > I think (hope) I've found it: > http://en.gentoo-wiki.com/wiki/Apache2/Virtual_Hosts > makes it clear that a subdomain's definition must /precede/ the domain's > definition. I was doing it the other way around, it

Re: [gentoo-user] Apache server setup

2012-06-25 Thread Peter Humphrey
On Sunday 24 June 2012 20:12:33 Michael Orlitzky wrote: > On 06/24/2012 01:47 PM, Peter Humphrey wrote: >8 > This is the error you need to fix: > > [Sun Jun 24 18:38:29 2012] [warn] [client 192.168.2.6] mod_include: > > Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter > > remov

Re: [gentoo-user] Apache server setup

2012-06-24 Thread Michael Orlitzky
On 06/24/2012 01:47 PM, Peter Humphrey wrote: > # Added by PRH: > AddType text/html .shtml > AddOutputFilter INCLUDES .shtml > > Options +SymLinksIfOwnerMatch +Includes +IncludesNoExec > > > ... > > That is indeed my working guide. Many thanks for your help so far. No problem. This is

Re: [gentoo-user] Apache server setup

2012-06-24 Thread Peter Humphrey
On Monday 11 June 2012 18:33:06 Michael Orlitzky wrote: (Apologies for lateness.) ...>8 > First of all, I see you have the mime module compiled; that's good. > Is it enabled? You should have, > > LoadModule mime_module modules/mod_mime.so > > in httpd.conf. Yes, that's ok. > Then, you shou

Re: [gentoo-user] Apache server setup

2012-06-11 Thread Michael Orlitzky
On 06/11/12 12:54, Peter Humphrey wrote: > OK, I've added that to 00_default_settings.conf. I'm not sure whether I > need rewrites though. > Your htaccess had some rewrite rules, that's why I suggested it. > The fog is beginning to clear. Thanks. > > I still can't get server-side includes to

Re: [gentoo-user] Apache server setup

2012-06-11 Thread Peter Humphrey
On Monday 11 June 2012 02:58:08 Michael Orlitzky wrote: > If you want to allow [rewrites] in an htaccess, you'll need at least, > > > Options +SymLinksIfOwnerMatch > AllowOverride FileInfo Options > > > in the main config or your vhost config. OK, I've added that to 00_default_set

Re: [gentoo-user] Apache server setup

2012-06-10 Thread Michael Orlitzky
On 06/10/2012 09:58 PM, Michael Orlitzky wrote: > > If you want to allow overrides in an htaccess, you'll need at least, > > > Options +SymLinksIfOwnerMatch > AllowOverride FileInfo Options > > > in the main config or your vhost config. > Ugh. If you want to allow *rewrites* in h

Re: [gentoo-user] Apache server setup

2012-06-10 Thread Michael Orlitzky
On 06/09/2012 05:59 AM, Peter Humphrey wrote: > On Friday 08 June 2012 22:01:08 Paul Hartman wrote: >> On Fri, Jun 8, 2012 at 1:21 PM, Peter Humphrey > wrote: >>> $ cat .htaccess >>> RewriteEngine on >>> >>> RewriteCond %{HTTP_REFERER} !^http://tideswellmvc.co.uk/.*$ >>> [NC] RewriteCond %{H

Re: [gentoo-user] Apache server setup

2012-06-09 Thread Peter Humphrey
On Friday 08 June 2012 22:01:08 Paul Hartman wrote: > On Fri, Jun 8, 2012 at 1:21 PM, Peter Humphrey wrote: > > $ cat .htaccess > > RewriteEngine on > > > > RewriteCond %{HTTP_REFERER} !^http://tideswellmvc.co.uk/.*$ > > [NC] RewriteCond %{HTTP_REFERER} !^http://tideswellmvc.co.uk$ > >

Re: [gentoo-user] Apache server setup

2012-06-08 Thread Paul Hartman
On Fri, Jun 8, 2012 at 1:21 PM, Peter Humphrey wrote: >> 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 > > Rewr

Re: [gentoo-user] Apache server setup

2012-06-08 Thread Peter Humphrey
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 - than

Re: [gentoo-user] Apache server setup

2012-06-08 Thread Paul Hartman
On Fri, Jun 8, 2012 at 11:01 AM, Peter Humphrey wrote: > Hi List, > > Is there a guide to setting up an Apache server on a Gentoo system? I'm > having difficulty getting the SSI module started; also the top-level > .htaccess file that comes from the production server Out There throws an > error on

[gentoo-user] Apache server setup

2012-06-08 Thread Peter Humphrey
Hi List, Is there a guide to setting up an Apache server on a Gentoo system? I'm having difficulty getting the SSI module started; also the top-level .htaccess file that comes from the production server Out There throws an error on my local LAN server: "/home/prh/public_html/.htaccess: Options