# Squirrelmail config

**URL:** <https://www.ruby-forum.com/t/squirrelmail-config/132061>\
**Category:** NGINX\
**Created:** [March 16, 2008, 8:10am UTC](https://www.ruby-forum.com/t/squirrelmail-config/132061 "2008-03-16T08:10:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_MSEvans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/7bcc69/32.png) [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Post date:** [March 16, 2008, 8:10am UTC](https://www.ruby-forum.com/t/squirrelmail-config/132061/1 "2008-03-16T08:10:42Z")

</div>

Does anyone have a location example for Squirrelmail?

I’m trying to get it running directly under nginx (it’s currently  
running fine with an Apache backend).

Under ngix and fastcgi I’m able to login fine and read a message, but  
when I try some of the links, instead of pointing to /src/whatever.php,  
they’re pointing to /src/src/whatever.

The only reference I can find to this on the SM list referred to some  
version fixed back in 2002.

---

<div class="post-metadata">

**Author:** ![Ian\_MSEvans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/7bcc69/32.png) [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Post date:** [March 16, 2008, 9:15am UTC](https://www.ruby-forum.com/t/squirrelmail-config/132061/2 "2008-03-16T09:15:45Z")

</div>

Ian M. Evans wrote:

> version fixed back in 2002.

It works great on my servers with a quite basic default configuration:

```
    location ~ .*\.php$ {
             include /usr/local/nginx/conf/fastcgi_params;
             fastcgi_pass unix:/var/nginx/php.sock;
             fastcgi_index index.php;
             fastcgi_param SCRIPT_FILENAME

```

$document\_root$fastcgi\_script\_name;  
}  
location /attachments {  
deny all;  
}  
location /plugins/squirrelspell/modules {  
deny all;  
}

---

<div class="post-metadata">

**Author:** ![Ian\_MSEvans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/7bcc69/32.png) [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Post date:** [March 16, 2008, 11:02am UTC](https://www.ruby-forum.com/t/squirrelmail-config/132061/3 "2008-03-16T11:02:10Z")

</div>

Renaud Allard wrote:

> It works great on my servers with a quite basic default configuration:

Renaud, thanks for the email. The site’s already working under nginx,  
the situation I’m having is different. The internal urls are acting  
weird – /src/src instead of /src – so this may be a way that php is  
handling some of the variables under CGI. I guess I’ll check on the SM  
list.
