LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Headers Content-Type settings?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2006, 10:49 PM
Auz Auz is offline
New Member
 
Join Date: Feb 2006
Posts: 5
Default Headers Content-Type settings?

I recently migrated from apache, and everything has been working fine. However, I noticed some differences with the headers. When I access a test php script in Apache I get this:

Code:
>lynx --mime_header http://www.path/file.php
HTTP/1.1 200 OK
Date: Tue, 14 Feb 2006 06:31:39 GMT
Server: Apache/2.0.52 (Gentoo/Linux)
Content-Length: 120
Connection: close
Content-Type: text/html; charset=ISO-8859-1
When I do the same with Litespeed:

Code:
>lynx --mime_header http://www.path/file.php
HTTP/1.0 200 OK
Content-type: text/html
Content-Length: 120
Server: LiteSpeed
Date: Tue, 14 Feb 2006 06:39:08 GMT
Connection: close
That charset=ISO-8859-1 makes the pages display correctly. I know I can add it to the headers in my php code but is there a way in lsws?

thanks
-auz
Reply With Quote
  #2  
Old 02-13-2006, 11:02 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Auz,

php.ini doc:

http://us3.php.net/ini.core

Try setting "default_charset = xxxx" within php.ini.

You can add default charset with litespeed "contexts" but there is no default charset setting at global vhost or server level.
Reply With Quote
  #3  
Old 02-14-2006, 08:25 AM
Auz Auz is offline
New Member
 
Join Date: Feb 2006
Posts: 5
I am aware I can do that, but in the snippets I posted above, the php.ini's are the same- with the default charset commented out. Plus apache uses that content-type even on non php pages, so it seems to me that there is a default value in apache, and I thought there might be one in litespeed.
Reply With Quote
  #4  
Old 02-14-2006, 10:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Just create a context with uri "/" pointing to your document root, set "Default Charset" to whatever you like. :-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Context-level problems setting custom HTTP headers Marcus Install/Configuration 3 04-03-2007 09:35 PM
Zero Length Content with AuthType Digest andrewbevitt Bug Reports 1 01-29-2007 09:26 AM
Context -> MIME Type setting does not work as described in documentation andreas Install/Configuration 3 08-15-2006 08:35 AM
Proxying static content from apache to LSWS vip562 Install/Configuration 3 05-12-2006 02:27 PM
Perl/FastCGI Probs - MIME type [€¤] for suffix '.fpl'... athanasius CGI/Perl/Python 3 02-08-2006 05:33 PM


All times are GMT -7. The time now is 09:48 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.