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


ADVERTISEMENT

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 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

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

Editing DNS Zones In WHM

Jul 16, 2009

I'm in the process of migrating a site to a new server. we're not ready to move email yet, so ideally i would like to just move web traffic at this time. i would like to be able to do this without changing the nameservers with the domain's registrar at this time.

which records to i need to manipulate in order to do this?

can i just change the A record for domain.com to point to a new IP and this won't impact the current email or do i need to move the entire site?

My biggest concern right now is impacting email by moving the everything to the new server.

View 2 Replies View Related

Editing A DNS Zone

Mar 11, 2008

to edit a DNS Zone (via WHM=> DNS Zone Edit) of a domain hosted on my server & which NS's are routed to.

New setting should route domain to a seperate server (i.e HTTP, FTP) and leave EMAIL on my server.

I've changed all settings, except MX & mail CNAME, to the new IP (This includes NS's, A's, CNAME's - WWW & ftp). Still the WWW is not working and email has stopped working localy.

View 9 Replies View Related

CPanel/WHM DNS Zone Editing

Jul 11, 2008

I have recently updated my cPanel/WHM to the latest stable version and with one (and maybe a few more) of the DNS zones I cannot edit using cPanel and I get this error:

Unable to parse zone: Error while parsing zonedata for THISISMYDOMAIN.COM: expected valid serial, line 4 ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.

What can I do to fix this as I need to edit this DNS zone urgently.

View 8 Replies View Related

FTP Program With Instant Editing

May 2, 2008

I am currently using WinSCP to edit files on remote servers on the fly without having to download them and then open them. WinSCP works fine, but today I experienced a severe problem for a second time.

When saving a file (a css file), WinSCP gave me an error something to the effect of "Lost connection - Could not list directory"...or something like that. When I reconnected, the file has gone corrupt at 0 bytes. Ultimately, the file is history!

Thankfully, I had a backup of the file, but more specifically, I am a fan of "Ctrl+A " then "Ctrl+C" before saving any file when doing live edits. This is what saved my butt!

I have a continuous problem of losing my connection with the remote servers, but when I connect via SSH to my local servers (either locally here or when I am mobile), I do not believe I have EVER lost my SSH connection.

My question is this...

Is there another FTP program out there that anyone can recommend that will allow me to edit files over FTP that does not require download, then open? Filezilla works great, but to my knowledge, I can only download each file, then open.

I have reported the problem to the host and we have gone through the settings with WinSCP and I have also been to WinSCP about this issue...all to no avail.

View 14 Replies View Related

Php.ini - Editing It Messed My Whole Server Up

May 11, 2008

I have changed one value in /etc/php.ini
safe_mode = On then restarted apache.

Now, when I try to access any mysql based sites, like forum or gallery - I get a blank page.

I went back and changed safe_mode back to 'Off'. Restarted the server - but I am still unable to load any pages.

Running CentOS.

View 6 Replies View Related

Crontab Editing Error

Jan 13, 2008

I am trying to edit crontab using crontab -e, I seem to get to it okay but I am unable to edit anything in there, at the end of the file there are ~ in there, and I cant even delete them. Its like the file is locked.

View 6 Replies View Related

Putty - Editing File

Oct 26, 2007

putty, and the SSH commands in general

When I open a file using "vi" command, it just open the file and I don't know how to edit it, by removing or adding text to it, so how can I do it?

View 5 Replies View Related

One Server - File - Two Users Editing It, Third Errors Out

Sep 25, 2009

There is 1000MBPS network set up between three computers and server.

Server has files which program saves.

Program is being run in three different computers.

Each computer tries to get into same file (eg last bill) that was created before. First computer goes in within seconds. second minutes and third just crashes. No matter which computer runs it first, last one crashes.

So called "server" is running on Windows XP pro since it just needs to keep one program files. However I cant find out whats causing file sharing over network bug that crashes access to same file if connection from many computers.

View 7 Replies View Related

Apache Does Not Restart After Editing Httpd.conf

Jun 12, 2009

I am having a problem on my VPS. I am running the latest version of Apache on Windows Server 2K3, and after editing httpd.conf to allow virtual hosts (#Include /conf/extra/httpd-vhosts.conf) and trying to restart the service, an error appears saying the operation failed.

I have even tried restarting/starting the service via services.msc

If I am not using the default httpd.conf Apache will not restart at all... it is very strange. I have also tried doing a repair of the installation of Apache.

View 11 Replies View Related

Plesk 12.x / Linux :: Persistent Editing Of Postfix Files

Dec 10, 2014

I want to put custom values in /etc/postfix/main.cf, but I'm afraid plesk would overwrite them during upgrade. How can I safely add custom values to main.cf and preserve them duing plesk updates?

View 1 Replies View Related

Plesk 11.x / Linux :: Duplicate Entry When Editing Login Parameters?

Feb 10, 2015

When you try to change the password of the client to login the control panel gives an error: SQLSTATE [23000]: Integrity constraint violation: 1062 Duplicate entry '<login>' for key 'login'

The impression that instead of UPDATE done INSERT.

Parallel Plesk Version: 11.5
OS: Debian Squeeze

View 2 Replies View Related

Apache :: Will Editing HTAccess File In Cpanel Effect All Wordpress Domains And Subdomains

Mar 26, 2014

I added the following to my cpanel .htaccess file on my hosting account:

<FilesMatch ".pdf$">header set x-robots-tag: noindex
</FilesMatch>

This was to stop Google from crawling and indexing my PDFs, will this work accross all my addon domains and subdomains (which are wordpress) on my hosting account or do I need to take extra measure?

View 4 Replies View Related







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