[users@httpd] AddHandler/AddType in <VirtualHost>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I'm migrating from the old days to 2.2 and I have a problem getting my old .html-files parsed by PHP 5.1 using the usual settings in <VirtualHost> in httpd-vhosts.conf.

As I have understood from the documentation the AddType/AddHandler directive is valid in the <VirtualHost> context and should override settings from the mime-file. Unfortunately neither of them seem to work.

If I change the AddType to include .html files in the general config file all gets parsed exquisitely.

There's nothing in the error_log, and all configtests run smoothly.

If anybody has a clue or is able to reproduce this problem please let me know!

Here's the dummy example adapted to my settings:

<VirtualHost *:80>
    ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxxxx
    DocumentRoot /www/docs/dummy-host.example.com
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    ErrorLog logs/dummy-host.example.com-error_log
    AddType application/x-httpd-php .php .html .php3
</VirtualHost>

TIA

Marko.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux