Mod_deflate Issues - Not Respecting MIME Types

Jun 8, 2008

I've got mod_deflate set up with Apache with the following line in httpd.conf:

Code:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
</IfModule>

It works well, for most things.

The issue I'm having is that mod_deflate is compressing binary data, outputted from PHP scripts as well (undesirable).

The script sends a Content-Type: application/octet-stream header, so I'm guessing that mod_deflate is simply not looking at headers generated by the script before compressing output.

I've even changed the default MIME type for Apache to application/octet-stream but to no avail.

Note that static content which has a defined MIME type doesn't get compressed - it's only the output generated by scripts.

Also, there is no defined MIME type for the .php extension.

I've also tried to disable the filter for certain directories, however, Apache doesn't seem to have an opposite to AddOutputFilterByType (although it does for AddOutputFilter (RemoveOutputFilter)). Also, I can't seem to stick in a negative <Directory> command either, which is a pain :/

View 0 Replies


ADVERTISEMENT

Editing Mime Types

Aug 27, 2008

Whenever I try to validate a page on my website it says it's invalid because the mime type is incorrect.

If I add this code to the top of the page:

PHP Code:

<?php
header("Content-Type: text/html");
?>

The page then becomes valid.

How can I update the mime type on the server so that I wont have to add this code to every page?

My server is a VPS running Apache with Plesk. I have SSH access.

View 3 Replies View Related

MIME Types :: Audio/x-scpls & Video/x-ms-asf?

Sep 18, 2008

i run an Internet radio station, and my current web host doesn't support the MIME Types i need for people to be able to click on the links to listen to it

so im looking for a new web host with cpanel preferably. and supports these MIME Types

PLS - audio/x-scpls
ASX - video/x-ms-asf

View 7 Replies View Related

Plesk 11.x / Linux :: Mime Types For Newer Office Files

Jul 24, 2014

I'm running plesk 11.5.30 and I'm having an issue with the new word doc format (.docx) being recognized as a zip file. I've read several posts that explain what mime types to add, and I've found the spot where I need to enter them. The part I'm not sure about is whether the custom mime types field is an addition to the current mime types or a replacement list. Does that field just needs the new mime types or a full list?

View 1 Replies View Related

Apache :: Session-Timeout Respecting Mouse Clicks But Not A Keypress

Feb 21, 2014

We have a screen where users are filling out a form on our website, but if they don't click "submit" before the session-timeout limit, they are logged out and lose their work when they click the button.

So for instance with a timeout of 10 minutes, if it takes 15 minutes to construct their message, the connection will silently time out in the background with no warning.

Is there a way to make Apache respect a keypress/keydown/keyup as "activity", and maintain the session while the user is still typing?

Our server reports that it is using Apache Tomcat/7.0.39

View 3 Replies View Related

Install & Run Mod_deflate In Apache2

Jul 17, 2008

I want run mod_deflate in my serve my server is apache 2.0.63

How can I do this?

View 0 Replies View Related

Zend Core / Mod_Deflate

Jul 29, 2008

Anyone have experience getting mod_deflate up and running on Zend Core?
(apache 2.2.4 / PHP 5.2.4)

If so, how did you do it? Seems Zend Core doesn't include mod_deflate.so by default.

View 0 Replies View Related

Installing Mod_deflate On Apache 1.3.37

Mar 26, 2007

I am new to our own vps with cpanel (though used cpanel for years) and instead of just using the built-in script to install mod_gzip I wanted to use the special mod_deflate for 1.3.37 I've read about since it apparently is much faster

The problem is I've only compiled and built minor things before with step by step
instructions - and I realize this has the potential to hose my server so I want to make sure I do it right.

I found these instructions:
[url]

if I ignore the mod_accel bits, does it look like that would be fine on a regular cpanel setup?

I'm such a newb I am not sure even what location to unpack those tarballs so even more detailed instructions would be greatly appreciated if anyone is willing to share.

View 0 Replies View Related

Hacking Buildapache To Add Mod_deflate (for 1.3.37)

Apr 3, 2007

apparently a mod_deflate patch has been available for apache 1.3.37 for some time but since I rely on cpanel as a huge time/knowledge saver, I'd like to hack it into buildapache/easyapache so it's an option just as easy as mod_gzip is (with a simple checkbox)

after poking around I learned that all the magic happens in /home/cpapachebuild/buildapache
I've studied how mod_gzip is activated/installed but some steps are beyond me

mod_deflate for 1.3.37 is here [url]the critical files inside are of course mod_deflate.patch and mod_deflate.c

so I assume stick those files into a directory under buildapache, but where do I hack in the patch and build steps?

View 4 Replies View Related

IIS With Mime And Dat Files

Aug 18, 2008

I have a problem with a .dat file on my webserver. It seems to download correctly (I have added the mime type), but my application refuses to use/read the file correctly.

This is moving from an Apache server, where it worked perfectly, to IIS6. Apache reported the mime as text/plain, whereas I've tried both this and application/octet-stream on IIS.

The dat-file is actually a ZIP password protected file containing an XML-file.

Could there perhaps be some issues with dato format? I'm most greatful for any insigth into the matter.

View 17 Replies View Related

IIS 6 Mime Type

Aug 10, 2008

I have an IIS 6 website with a strange problem. All content types are sent as text/html. For example, jpegs, gifs, and others all are listed as text/html when I do a header check. Anyone ever seen this or know what might cause it?

View 2 Replies View Related

PGP Vs S/MIME For Secure Email

May 17, 2008

Some articles on the Net seem to suggest (may be I have misunderstood it) that S/MIME, which uses x.509 certificates is better for implementing secure email as the sender can use the x.509 cert to encrypt and digitally sign the messages and the recipient only needs an email client that implements x.509.

Is this true? Or, will key pairs still need to be generated and the public key shared with the recipient in advance even when using S/MIME?

View 2 Replies View Related

--with-mime-magic: Not Found

Mar 25, 2007

any hints on the reason of "--with-mime-magic: not found" when compiling PHP?

FreeBSD 6.1

View 1 Replies View Related

How Many Types Of Hosting

May 6, 2009

Types of hosting:

1.Free web hosting service

2.Shared web hosting service

3.Reseller web hosting

4.Virtual Dedicated Server

5.Dedicated hosting service

6.Managed hosting service

7.Colocation web hosting service

8.Cloud hosting

9.Clustered hosting

10.Grid hosting

11.Home server

View 13 Replies View Related

RDP Access Types

Apr 6, 2009

to add a new terminal user to my windows vps.

Could anyone explain what are the differences between these 3 access types?

The type of access to be granted: 0 = WINSTATION_GUEST_ACCESS

1 = WINSTATION_USER_ACCESS

2 = WINSTATION_ALL_ACCES

View 2 Replies View Related

Types Of Websites

Oct 8, 2008

what are all the different types of websites? i know there's e-commerce, forums, blogs, personal and etc. what are some other types of websites people start?

View 9 Replies View Related

FTP- Limiting Types Of Access

Mar 30, 2008

Is it possible to setup ftp accounts that have the ability for the users to view files on the server and upload their own files, but not download anything from the server? If so, how would this be done, if not, then as a 2nd option, do most hosting companies provide the option to disallow downloads on an ftp account if you need to do so, but allow uploads?

View 4 Replies View Related

Different Local Remote Server Types

Mar 22, 2007

I cannot find a suitable forum for this query so here goes on this one!

I am doing a charity site as a voluntary exercise. They currently host with Eclipse who have the Zeus server (site developed in Frontpage).

This is not an open source server. Thing is, what are the issues of say developing on my loacal machine (apache or IIS5) and having the remote being Zeus. I use Dreamweaver 8 for developing.

I would of thought this does not matter as the server technology is transparent and down to configuration files. The directory structure both ends can be the same.

Am I right to go ahead and not worry about this?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved