Re: Nginx Configuration and 404 Error

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


More info: I've discovered an issue with the value returned from the
$_SERVER['PHP_SELF'] variable. For some reason the value contains the path
to a particular file concatendated to itself, like this:


This causes HTTP 404 errors when attempting to process (delete, move, etc)
displayed messages because the path to the PHP source files ends up being
invalid. The fix is to replace PHP_SELF with SCRIPT_NAME in the
functions/strings.php file at line 1514 inside the php_self() function.That
is, change this:

if (!sqgetGlobalVar('PHP_SELF', $request_uri, SQ_SERVER)

to this:

if (!sqgetGlobalVar('SCRIPT_NAME', $request_uri, SQ_SERVER)

I entered a bug report in SourceForge
( that was closed as
invalid with this comment:

"While the various CGI variables provided by PHP can seem like a web of
confusion, they are never given in such incorrect fashion unless you have a
botched server-side configuration. This problem is not a SquirrelMail
problem; it is a mistake in your Nginx/FCGI configuration."

So back to my original question: can someone please help me figure out
what's broken in my Nginx/FCGI configuration? It's working just fine for
other services I'm running on the same server, like Drupal.

View this message in context:
Sent from the squirrelmail-users mailing list archive at

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