Re: general problems with squirrelmail behind

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

 



Hi Tomas, hi list,

> Location base setting allows to set hostname part. It won't help, when
> base urls are different. In your case it still works because base url
> differs only by proxied hostname. Your location base configuration fixes
> detection in SquirrelMail get_location() function. But path detection in
> sqm_baseuri() and php_self() functions remains unfixed.
> 
> Open SquirrelMail functions/strings.php.
> Find lines with
> ----
>    if ( sqgetGlobalVar('PHP_SELF', $php_self, SQ_SERVER) &&
> !empty($php_self) ) {
> 
>       // need to add query string to end of PHP_SELF to match REQUEST_URI
>       //
>       if ( sqgetGlobalVar('QUERY_STRING', $query_string, SQ_SERVER) &&
> !empty($query_string) ) {
>          $php_self .= '?' . $query_string;
>       }
> 
>       return $php_self;
>     }
> ----
> 
> and modify them to
> ----
>    if ( sqgetGlobalVar('PHP_SELF', $php_self, SQ_SERVER) &&
> !empty($php_self) ) {
> 
>       // need to add query string to end of PHP_SELF to match REQUEST_URI
>       //
>       if ( sqgetGlobalVar('QUERY_STRING', $query_string, SQ_SERVER) &&
> !empty($query_string) ) {
>          $php_self .= '?' . $query_string;
>       }
> 
>       if (sqgetGlobalVar('HTTP_X_FORWARDED_SERVER',$proxy,SQ_SERVER) &&
>         $proxy == 'ssl-proxy.com') {
>         $php_self = '/mydomain.com' . $php_self;
>       }
> 
>       return $php_self;
>     }
> ----
> 
> Then find lines with
> ----
> function get_location () {
> 
>     global $imap_server_type, $config_location_base;
> ----
> 
> and modify them to
> ----
> function get_location () {
>     global $imap_server_type, $config_location_base;
>     if (sqgetGlobalVar('HTTP_X_FORWARDED_SERVER',$proxy,SQ_SERVER) &&
>         $proxy == 'ssl-proxy.com') {
>         $config_location_base='https://ssl-proxy.com/mydomain.com';
>     }
> ----
> 
> location base must be set to autodetect in SquirrelMail configuration.
> 
> After these modifications SquirrelMail should work in
> https://ssl-proxy.com/mydomain.com/squirrelmail and in
> http://mydomain.com/squirrelmail addresses. Please note that my
> suggestions are based on situation reproduced in Apache2 mod_rewrite
> setup. If your setup is different, check "Apache Environment" section in
> phpinfo() script output. I am using one of server headers to detect
> proxied setup. I don't guarantee that all SquirrelMails scripts and
> plugins will work correctly. Some plugins might use own path and location
> base detection functions.
> 


I applied both changes in strings.php you suggested to the Squirrelmail 1.4.10a installation. Now I can login and work with most of the available functionality. Unfortunately there's still a problem when sending e-mails. I get the following error message when sending an e-mail in ssl mode:

Not Found

The requested URL /mydomain.com/squirrelmail/src/right_main.php was not found on this server.

The mail is sent without problems, I can see it in the "sent" folder afterwards. But the error message is annoying. The error does not appear when connecting with http without the ssl-proxy. Can you help me getting this last problem out of the way?

Another question: Is there any chance that support of my ssl proxy / mod_rewrite setup will be supported in future version of Squirrelmail without the need for manual changes?

Thanks in advance for your great support,
Gregor

Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT FÜR ALLE NEUEINSTEIGER
Jetzt bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket
für clevere Doppel-Sparer, nur  34,95 ?  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


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

  Powered by Linux