473,506 Members | 16,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP, Apache and content-type negociation

Hi,

there is an apparently relatively well known issue with Apache with PHP
as a module and content-type negociation, whereby the very setup of PHP
as a module for Apache requires that a new (I would say "fake") mime
type x-httpd-php be created, which clashes with content type
negociation, having Apache consider php source file as being of type
x-httpd-php instead of text/html when performing content type negociation.

An illustration of this is http://www.bmt.dnsalias.org/employment, which
actually serves the file employment.php, but will return a 406 Not
acceptable error to the W3C CSS validator, which specifically excludes
all non text/html contents in its request (as evidenced on - mend URL if
broken -
http://jigsaw.w3.org/css-validator/v...1&profile=css2)

Litterature about the subject suggests that configuration of PHP for
Apache with the AddType directive is actually a misconfiguration, and
that PHP should rather be configured with an AddHandler directive,
which, as far as I understand, suggests that it should be run as a CGI
script.

My question is thus to know whether it is possible to somehow mend that
content type negociation issue, while still running PHP as a module.

Thanks in advance,

--
Bertrand Mollinier Toublet
"Reality exists" - Richard Heathfield, 1 July 2003

Jul 16 '05 #1
0 1920

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2173
by: Jim Johnstone | last post by:
Some details of my HOME PC. I am running the following .... Win2000 SP4; IE V6; 512MB RAM; H/Disk Space OK. In the past couple of weeks I have installed/configured from binaries for .. MySQL...
10
2263
by: Captain Ranger McCoy | last post by:
Hello! Suppose I have ten servers at ten ips: x.x.x.1 x.x.x.2 x.x.x.3 x.x.x.4 and so on Each server hosts 100+ photo galleries, all under a single domain name,
3
1599
by: Terry Jones | last post by:
I am trying to setup an Apache web server to accept XML document and use a CGI to process the content of the XML file. My questions are: * When a client performs a POST to the server; assume that...
1
3500
by: PerryG | last post by:
We have a .NET 1.1 client which is sending a gzipped soap request using HttpWebRequest to an Apache server. The Apache server is using a the 'mod_deflate' server to decompress the incoming...
5
3207
by: PerryG | last post by:
We have a .NET 1.1 client which is sending a gzipped soap request using HttpWebRequest to an Apache server. The Apache server is using a the 'mod_deflate' server to decompress the incoming...
4
3714
by: Patrick Masson | last post by:
Hello, Our configuration : Apache 2.0.53 PHP 5.0.4 PC Windows 2000 MATLAB 6.1 We work on a consulting project in France which involves MATLAB Web server,
1
1394
by: Sam Carleton | last post by:
Is it possible to have apache host an asp.net app on a windows server? If so, how? Sam
14
2718
by: Jim Carlock | last post by:
I have a couple easy questions possibly. 1) Is there a default.php page? The webserver seems to support default.htm, default.html, index.htm and index.html. It's an Apache server, I'd like to...
0
1791
by: alexsink | last post by:
I am trying to get apache content negotiation to redirect only zh-CN(mainland China, where Simplified Chinese translations are available) language types to Chinese web pages, and have all other...
3
1695
by: Haseeb Khan | last post by:
Hi All, I have configured IIS on a Windows 2003 Hosting Server and it is currently listening to Port 80. I have also installed Apache which is running on Port 9091. I have already installed PHP...
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
5035
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.