SquirrelMail English Site Russian Site Japanese Site 
News
About
Support
Screen shots
Download
Plugins
Documentation
Sponsors



Older Newer
Mon, 19 Feb 2007 12:18:43 . . . . squirrelmail.org [Moving info from ChangingDirectoryPermissions]


Changes by last author:

Added:
Here are examples httpd.conf settings for running SquirrelMail under Apache:

<code>

Alias /mail/ /var/squirrelmail/bin/

<Directory /var/squirrelmail/bin/>

Options MultiViews? FollowSymLinks?

AllowOverride? None

Order allow,deny

Allow from all

</Directory>

</code>

This assumes you have unpackaged SquirrelMail into /var/squirrelmail/bin. In this configuration I have /var/squirrelmail/tmp set as the attachments tmp dir and /var/squirrelmail/data as the preferences directory.

Also, if your server emits the source instead of the actual pages it's likely that the PHP modules haven't been loaded. I noticed in my http*.conf files define checks for HAVE_PHP4 and removed these and restarted the webserver and everything worked perfectly. There is probably a better solution to define HAVE_PHP4 so you don't have to modify config files.

Ryan Snodgrass, 2002-03-18

----

You may also want to ensure that any connection to the SquirrelMail pages makes use of a secure (SSL) connection. One way is to redirect any connection to your mail directory with the following Apache configuration commands:

<code>

RewriteEngine? on

RewriteCond? %{REQUEST_URI} ^/mail.*

RewriteCond? %{SERVER_PORT} !^443$

RewriteRule? ^/(.*) https://example.com/$1

</code>

Kelly Black, 2003-09-07

----

I had to use :

<code>

RewriteEngine? on

RewriteCond? %{REQUEST_URI} ^/mail.*

RewriteCond? %{SERVER_PORT} !^443$

RewriteRule? . https://example.com%{REQUEST_URI}

</code>

Otherwise, it wouldn't work on my Apache setup

David, 2004-05-12

----

Apache can be configured in a couple different ways to make sure that people don't request files out of the data directory if you are forced to keep it in a web server readable area (see DataAndAttachmentsDirectories).

You can add [<Location>] tags in the Apache config.

<code>

<Location /status>

SetHandler? server-status

Order Deny,Allow

Deny from all

</Location>

</code>

You can add [<Files> ] tags in the Apache config or to a .htaccess file.

<code>

<Files "*">

deny from all

</Files>

</code>

Please read the following links for more options:

* [Apache Configuration Files] - .htaccess files

* [Apache Core Features] - Core directives in configuration files

© 1999-2008 by The SquirrelMail Project Team