Good morning, On 19/8/05 at 10:40 AM -0500, Jonathan Angliss <[EMAIL PROTECTED]> wrote:
>Hello Charlie Garrison, >On Thursday, August 18, 2005, you wrote: > >> There is a 'frontend' apache server which proxies requests to a 'backend' >> apache/php server. > >> When I click 'send' from the 'compose' page, I get a browser timeout with an >> error message such as (port number changed to xxx): > >> Temporarily unable to connect to 202.51.168.70:xxx: Operation timed out > >> The xxx port number is the one used by the backend PHP server. How >> do I keep SM from using that port number and just using port 80 (or >> no custom port number)? > >Did you logout, and back in again? The values from that function are >stored in the session so it's only ran once. Instead of commenting it Yes, I logged out and deleted browser cookies. I also tested from another computer/browser with the same problem. >out, have you tried setting a value for the host/port. Around line >257 of strings.php you should see $full_url = (.... Try commenting out >that line, and putting: > >$full_url = 'http://www.yourdomain.tld'; I ended up doing a preg_replace on $full_url to get rid of the port number and that has fixed the problem. (And learning to convert perl skills to php along the way.) So my concern now is losing those changes (& forgetting about them) when I next do an update of squirrelmail. I'd like to submit a patch or suggest a change for future versions. Should I take that to the squirrelmail-dev list? I haven't spent much time in the SM code so I'm not sure whether there should be a global variable to set whether the port number should be used. I was thinking something along these lines: $use_virthost_port = 1; #default - use port number from full_url $use_virthost_port = 0; #strip the port number from full_url $use_virthost_port = 8080; #change the port number in full_url And then update get_location to react accordingly. Thanks, Charlie -- Charlie Garrison <[EMAIL PROTECTED]> PO Box 141, Windsor, NSW 2756, Australia ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
