You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marko Leer <ma...@half2.nl> on 2003/05/16 15:09:01 UTC

Re[2]: [users@httpd] AddTypes in

Hi Jeff, all,

JC> Why won't you set them per VHost?

Turns out you can't AddType within a <Directory> within a
<VirtualHost> but you can outside <Directory> within <VirtualHost>.
Suits me. And beats me.

Tnx,

Marko.

>> Hello all,
>> 
>> I'm running Apache 1.3.27 and I'm wondering why my configuration
>> doesn't work if I add an addType within a <Directory> within a
>> <Virtualhost> like this:
>> 
>> <VirtualHost 123.123.123.123>
>> [some more stuff here]
>>            <Directory /home/users/foo>
>>            AddType application/x-httpd-php .php
>>            AddType application/x-httpd-php .html
>>            AddType application/x-httpd-php .dgif
>>            AddType application/x-httpd-php .img
>>            AddType application/x-httpd-php .htm
>>            AddType application/x-httpd-php .php
>>            </Directory>
>> </Virtualhost>
>> 
>> My files do get parsed with the AddType application/x-httpd-php .php
>> directive any other place in the conf, but on this server I need to
>> set which virtuals are able to use PHP.
>> 
>> I'm a bit lost here since I couldn't find any documents concerning
>> this set-up; I know this construction was in the httpd.conf of the
>> server of my former employer and actually worked...
>> 
>> Any help appreciated.


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Re[2]: [users@httpd] AddTypes in

Posted by Thomas Strike <st...@pacbell.net>.
----- Original Message ----- 
From: "Marko Leer" <ma...@half2.nl>


> Hi Jeff, all,
> 
> JC> Why won't you set them per VHost?
> 
> Turns out you can't AddType within a <Directory> within a
> <VirtualHost> but you can outside <Directory> within <VirtualHost>.
> Suits me. And beats me.
> 
> Tnx,
> 
> Marko.
>
Thanks to you, Marko
That's a good one to know and remember.

Cheers,
Tom S.
http://www.SleepyValley.net/me



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org