You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Harrell, Roger" <rj...@bechtel.com> on 2004/11/12 00:58:38 UTC

[users@httpd] and ForceType directive behaving oddly

Ok, here's the situation. I frequently use configs in both httpd.conf and
.htaccess such as:

	<Location /filenamt>
	ForceType application/x-httpd-php
	</Location>

or
        <Files filename>
        ForceType application/x-httpd-php
        </Files>

respectively to allow scripting with URLS not containing ?s and other
special characters. So that way I can have a URL:

http://www.somedomain.com/filename/variable1/variable2

and so forth. I've had this working for several years, and just went to
implement another script in the same fashion and it doesn't work. 

It's on the same machine, but a different <virtualhost> as several other
domains that have this working. When I go to:


http://www.somedomain.com/filename

It behaves properly, but if I go to:


http://www.somedomain.com/filename/variable1

I get an Object not found error (404). The error logs show the 404 on:
http://www.somedomain.com/filename/variable1

I've checked the configs and can not see anything that is different. Anyone
have a clue what I might be missing?

Thanks,
Roger

---------------------------------------------------------------------
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] and ForceType directive behaving oddly

Posted by Tim Burden <Ti...@Burden.ca>.
Maybe AcceptPathInfo
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo

----- Original Message ----- 
From: "Harrell, Roger" <rj...@bechtel.com>
To: <us...@httpd.apache.org>
Sent: Thursday, November 11, 2004 6:58 PM
Subject: [users@httpd] <Location> and ForceType directive behaving oddly


> Ok, here's the situation. I frequently use configs in both httpd.conf and
> .htaccess such as:
>
> <Location /filenamt>
> ForceType application/x-httpd-php
> </Location>
>
> or
>         <Files filename>
>         ForceType application/x-httpd-php
>         </Files>
>
> respectively to allow scripting with URLS not containing ?s and other
> special characters. So that way I can have a URL:
>
> http://www.somedomain.com/filename/variable1/variable2
>
> and so forth. I've had this working for several years, and just went to
> implement another script in the same fashion and it doesn't work.
>
> It's on the same machine, but a different <virtualhost> as several other
> domains that have this working. When I go to:
>
>
> http://www.somedomain.com/filename
>
> It behaves properly, but if I go to:
>
>
> http://www.somedomain.com/filename/variable1
>
> I get an Object not found error (404). The error logs show the 404 on:
> http://www.somedomain.com/filename/variable1
>
> I've checked the configs and can not see anything that is different.
Anyone
> have a clue what I might be missing?
>
> Thanks,
> Roger
>
> ---------------------------------------------------------------------
> 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


Re: [users@httpd] and ForceType directive behaving oddly

Posted by Peter Johnson <pe...@wizardslair.net>.
Are you allowing override i.e. allowing use of .htaccess?
What if you specify it within the virtualhost directive?

PJ

Harrell, Roger wrote:

>Ok, here's the situation. I frequently use configs in both httpd.conf and
>.htaccess such as:
>
>	<Location /filenamt>
>	ForceType application/x-httpd-php
>	</Location>
>
>or
>        <Files filename>
>        ForceType application/x-httpd-php
>        </Files>
>
>respectively to allow scripting with URLS not containing ?s and other
>special characters. So that way I can have a URL:
>
>http://www.somedomain.com/filename/variable1/variable2
>
>and so forth. I've had this working for several years, and just went to
>implement another script in the same fashion and it doesn't work. 
>
>It's on the same machine, but a different <virtualhost> as several other
>domains that have this working. When I go to:
>
>
>http://www.somedomain.com/filename
>
>It behaves properly, but if I go to:
>
>
>http://www.somedomain.com/filename/variable1
>
>I get an Object not found error (404). The error logs show the 404 on:
>http://www.somedomain.com/filename/variable1
>
>I've checked the configs and can not see anything that is different. Anyone
>have a clue what I might be missing?
>
>Thanks,
>Roger
>
>---------------------------------------------------------------------
>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