Apache server and PHP script - Problem
Hello, I have a problem using a PHP script that "streams" out data, like a chat client.I have runned into problems using it via a proxy I have at work from my server at home - but not on a diffrent host.
Here are what the server sends out in the headers at my home server:
Code:
HTTP/1.1 200 OK Connection: close Date: Thu, 05 Feb 2004 03:32:46 GMT Server: Apache/2.0.48 (Win32) PHP/4.3.4 Content-Length: 456 Content-Type: text/html;charset=utf-8 Client-Response-Num: 1
Code:
HTTP/1.1 200 OK Connection: close Date: Thu, 05 Feb 2004 03:33:13 GMT Accept-Ranges: bytes ETag: "738127-14e2-3f0b628b" Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_jk/1.2.0 mod_perl/1.26 PHP/4.2.2 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b Content-Length: 5346 Content-Type: text/html Last-Modified: Wed, 09 Jul 2003 00:32:11 GMT Client-Response-Num: 1
Code:
GET /some/url.html HTTP/1.0 Via: 1.1 BDUFS1002, 1.0 KOLFS1014 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) If-Modified-Since:Thu, 05 Feb 2004 00:32:24 GMT Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Language: no Accept-Encoding: gzip, deflate Connection: Keep-Alive
Here are my configuration on my home server:
(I edited some out, like modules, types etc..)
Code:
ServerRoot "E:/server/Apache2" PidFile logs/httpd.pid #Timeout 300 Timeout 9000 KeepAlive On MaxKeepAliveRequests 3000 KeepAliveTimeout 9000 <IfModule mpm_winnt.c> ThreadsPerChild 250 MaxRequestsPerChild 0 </IfModule> Listen 80 LoadModule php4_module "E:/server/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php Action application/x-httpd-php "E:/server/php/php.exe" ServerAdmin admin@localnet ServerName comis.localnet:80 UseCanonicalName Off DocumentRoot "E:/www_root/public" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "E:/www_root/public"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> UserDir "E:/www_root/users" DirectoryIndex index.php index.html index.html.var AccessFileName .htaccess <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> TypesConfig conf/mime.types DefaultType text/plain <IfModule mod_mime_magic.c> MIMEMagicFile conf/magic </IfModule> HostnameLookups Off EnableMMAP off ErrorLog logs/error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog logs/access.log common ServerTokens Full ServerSignature On Alias /icons/ "E:/server/Apache2/icons/" <Directory "E:/server/Apache2/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> IndexOptions FancyIndexing VersionSort AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddHandler type-map var BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully BrowserMatch "^gnome-vfs" redirect-carefully <IfModule mod_ssl.c> Include conf/ssl.conf </IfModule>