You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Gary W. Smith" <ga...@primeexalia.com> on 2005/11/05 21:12:34 UTC

[users@httpd] Configuration directives question

Hello, 

I'm trying to work up a html only server for of about 1000+ people.
This server is a dual role server as it holds both their static html
pages and their email (running cyrus).

We were looking at using mod_user but we wanted to work around the tilde
issue.  So we pointed DocumentRoot to the /home/.  From there we can now
to the /username and it maps to /home/username which works fine.

What we need to do is to disable PHP (any any type of SSI) for
DocumentRoot and anything under there but keep it enabled for certain
script aliases (such as horde which lives in /usr/local/horde).

What would the two configuration directories look like?  Is there a
better approach than this?  

Gary Wayne Smith




Re: [users@httpd] Configuration directives question

Posted by Nick Kew <ni...@webthing.com>.
On Saturday 05 November 2005 20:12, Gary W. Smith wrote:

> What we need to do is to disable PHP (any any type of SSI) for
> DocumentRoot and anything under there but keep it enabled for certain
> script aliases (such as horde which lives in /usr/local/horde).

Don't disable it.  Make sure you don't enable it in the first place.

You can enable it within a <Directory>, well away from the user stuff,
for your horde and any other contents that want it.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Configuration directives question

Posted by James Benson <jb...@jamesbenson.co.uk>.
Place the following into an .htaccess file

php_flag engine off


http://php.net/manual/en/ref.apache.php#ini.engine





Gary W. Smith wrote:
> 
> 
> Hello,
> 
> I ’ m trying to work up a html only server for of about 1000 + people.   
> This server is a dual role server as it holds both their static html 
> pages and their email (running cyrus).
> 
> We were looking at using mod_user but we wanted to work around the tilde 
> issue.  So we pointed DocumentRoot to the /home/ .  From there we can 
> now to the /username and it maps to /home/username which works fine.
> 
> What we need to do is to disable PHP (any any type of SSI) for 
> DocumentRoot and anything under there but keep it enabled for certain 
> script aliases (such as horde which lives in /usr/local/horde).
> 
> What would the two configuration directories look like ?  Is there a 
> better approach than this? 
> 
> Gary Wayne Smith
> 
> 
>