Nginx Configuration and 404 Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


I'm getting an HTTP 404 error when I delete a message from my Trash folder.
I'm hoping that someone can help me identify a fix.

I have a message from my Trash folder displayed. The hyperlink to delete the
message uses this URL:

Clicking on "Delete" produces a 404. This is what I see in my web server

X.X.X.X - - [26/Jan/2016:08:17:26 -0500] "GET
startMessage=1&mailbox=INBOX.Trash HTTP/1.1" 404 206
sed_id=71&startMessage=1" "Mozilla/5.0 (Windows NT 10.0; WOW64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"

Note the path associated with the GET -
/squirrelmail/src/delete_message.php/squirrelmail/src/right_main.php. That
path is invalid (and the source for the 404), but what's causing that path
to be sent to the web server? I get the same 404s when I move a message from
one folder to another, delete a message from my Inbox, etc.

Here's some diagnostic information. First, configtest output:

SquirrelMail version:	1.4.23 [SVN]
Config file version:	1.4.0
Config file last modified:	01 April 2013 19:16:01
Checking PHP configuration...
    PHP version 5.5.9-1ubuntu4.14 OK.
    Running as www-data(33) / www-data(33)
    error_reporting: 22527
    variables_order OK: GPCS.
    PHP extensions OK. Dynamic loading is disabled.
    ERROR: You have configured PHP not to allow short tags
(short_open_tag=off). This shouldn't be a problem with SquirrelMail or any
plugin coded coded according to the SquirrelMail Coding Guidelines, but if
you experience problems with PHP code being displayed in some of the pages
and changing setting to "on" solves the problem, please file a bug report
against the failing plugin. The correct contact information is most likely
to be found in the plugin documentation.

Checking paths...
    Data dir OK.
    Attachment dir OK.
    Plugins OK.
    Themes OK.
    Default language OK.
    Base URL detected as:
(location base autodetected)
Checking outgoing mail service....
    SMTP server OK (220 ESMTP Postfix (Ubuntu))
Checking IMAP service....
    IMAP server ready (* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
Dovecot (Ubuntu) ready.)
Checking internationalization (i18n) settings...
     gettext - Gettext functions are available. On some systems you must
have appropriate system locales compiled.
     mbstring - Mbstring functions are available.
     recode - Recode functions are unavailable.
     iconv - Iconv functions are available.
     timezone - Webmail users can change their time zone settings.
Checking database functions...
    not using database functionality.
Congratulations, your SquirrelMail setup looks fine to me!

OS version: Ubuntu 14.04.3 LTS (GNU/Linux 4.1.5-x86_64-linode61 x86_64)

PHP version: PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:32:13)

nginx version: nginx/1.4.6 (Ubuntu)

Here's my nginx config:

        location /squirrelmail {
                root /usr/share/;
                index index.php index.html index.htm;
                location ~ ^/squirrelmail/(.+\.php)$ {
                        try_files $uri =404;
                        root /usr/share/;
                        include /etc/nginx/fastcgi_params;
                        fastcgi_pass unix:/var/run/php5-fpm.sock;
                        fastcgi_param HTTPS on;
                        fastcgi_index index.php;
                        fastcgi_buffer_size 128k;
                        fastcgi_buffers 256 4k;
                        fastcgi_busy_buffers_size 256k;
                        fastcgi_temp_file_write_size 256k;
                location ~*
^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                        root /usr/share/;
        location /webmail {
                rewrite ^/* /squirrelmail last;

Thanks for your help,

Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
squirrelmail-users mailing list
Posting guidelines:
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives:
List info (subscribe/unsubscribe/change options):

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux