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 08:57:13 UTC
[users@httpd] AddTypes in
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.
Cheers
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] AddTypes in
Posted by Thomas Strike <st...@pacbell.net>.
From: "Marko Leer" <ma...@half2.nl>
> 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>
>
Make sure that you don't ahve an .htaccess file overriding your
configurations it the directories this applies to.
Also, You only need one AddType directive per container.
(AddType application/x-http-php .php .hp3 .dgif .img .htm)
The dot is optional.
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
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
Re[2]: [users@httpd] AddTypes in
Posted by 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.
>> 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: [users@httpd] AddTypes in
Posted by Jeff Cohen <su...@gej-it.com>.
Why won't you set them per VHost?
Look into the FAQ:
http://www/manual/mod/mod_mime.html#addtype
Jeff Cohen
Jeff@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!
> -----Original Message-----
> From: Marko Leer [mailto:marko@half2.nl]
> Sent: Friday, May 16, 2003 2:57 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] AddTypes in <Directory>
>
> 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.
>
> Cheers
>
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
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