PDA

View Full Version : About cookies from proxy server


kiladila
04-19-2011, 06:44 AM
OS: Debian 5 lenny x64
Litespeed: Enterprise
PHP: 5.3.5 LSAPI

Hello, so i have problem with litespeed server.
We using some web proxy to receive files from filehost. That file host requires authorization with cookies.

Problem: we cannot receive cookies from proxy server. However it's working on Apache. take a look bellow maybe it will be more understandable...

With Apache everything OK

*HTTP/1.0 200 OK Date: Tue, 19 Apr 2011 12:36:30 GMT Server: Apache
Last-Modified: Tue, 19 Apr 2011 12:36:30 GMT Expires: Tue, 19 Apr 2011
12:36:30 GMT Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Set-Cookie:
user=edcfbf7b6affbd5b2asd2b50ab9dc14f; expires=Mon, 13-Jan-2014 12:36:30
GMT; path=/; domain=.megaupload.com Vary: Accept-Encoding Content-Type:
text/html; charset=UTF-8 X-Cache: MISS from dvkom.net X-Cache-Lookup: MISS
from dvkom.net:3128 Via: 1.0 dvkom.net (squid/3.0.STABLE8) Proxy-Connection:
close

With LiteSpeed no cookies :(

HTTP/1.0 200 OK Date: Tue, 19 Apr 2011 12:38:09 GMT Server: Apache
Last-Modified: Tue, 19 Apr 2011 12:38:09 GMT Expires: Tue, 19 Apr 2011
12:38:09 GMT Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Vary:
Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache: MISS from
dvkom.net X-Cache-Lookup: MISS from dvkom.net:3128 Via: 1.0
dvk

By the way I'm using RC version of 4.1

mistwang
04-19-2011, 08:25 AM
Are you using a PHP script to download file from megaupload.com, through a cache proxy?

It must be something different between Apache PHP and litespeed PHP, you should compare the phpinfo() output, make sure all required modules are identical.

It does not have direct relation with LiteSpeed itself.

kiladila
04-19-2011, 08:35 AM
Yes i'm using script but have no idea where to look, can you point me correctly?

kiladila
04-19-2011, 08:41 AM
Now in litespeed i have:


'./configure' '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-mysql' '--with-curl' '--with-mcrypt' '--with-openssl' '--enable-suhosin' '--with-litespeed'

webizen
04-19-2011, 04:15 PM
for php used in Apache, type following from command line:

php -i

kiladila
04-19-2011, 04:45 PM
You can check php: http://balticppg.eu/info.php

On this server (Apache) everything is fine...

webizen
04-19-2011, 05:01 PM
Try recompile php in LSWS with the following options (match with Apache's)

'--disable-posix' '--disable-ipv6' '--enable-safe-mode' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zip' '--with-openssl' '--with-zlib' '--with-curl' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir' '--with-gettext' '--with-mcrypt' '--with-mhash' '--with-xsl' '--with-mysql' '--with-mysqli' '--with-pdo-mysql' '--with-pear=/usr/share/pear' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-pspell' '--with-tidy' '--enable-suhosin' '--with-litespeed' '--enable-discard-path'

der
06-10-2011, 12:30 AM
I have the same problem.

So how the problem was solved?

NiteWave
06-10-2011, 01:57 AM
please try latest 4.1.1(if you have installed 4.1.1, do Force Reinstall).
it fixed a cookie related issue. if still problem, please open a new thread and give more detail info of the issue.

webizen
06-10-2011, 09:49 AM
the problem is related to PHP compiled in LSWS not being compatible with the one used by Apache.

To solve the problem, just build matching PHP in LSWS (using the same set of compile options as the one used by Apache).

I have the same problem.

So how the problem was solved?