logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: 405 error on POST request for static content
Author
ebessette



Joined: 08 Sep 2007
Posts: 1

PostPosted: Sat 08 Sep '07 23:27    Post subject: 405 error on POST request for static content Reply with quote

I'm using a third-party AJAX library to retrieve a static file and when I go to the web page without using the subdomain, http://www.ebessette.com/biodieselmap/, everything works. However, when I use the subdomain, http://biodieselmap.ebessette.com, Apache returns a 405 error:

Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>405 Method Not Allowed</TITLE>
</HEAD><BODY>
<H1>Method Not Allowed</H1>
The requested method POST is not allowed for the URL /resources/messages/messages.json.<P>
<HR>
<ADDRESS>Apache/1.3.37 Server at biodieselmap.ebessette.com Port 80</ADDRESS>
</BODY></HTML>


I can't updated the httpd.conf file on this machine without begging the hosting company, so I'd prefer to fix this problem with a .htaccess file.

Can anyone help me out?

Thanks,
Eric
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Sun 09 Sep '07 5:11    Post subject: Reply with quote

It would help to know what there is in your httpd.conf file that affects .json files. Do you have read access to httpd.conf?

Guessing that you are running Apache 2.2, these directives might be worth a try:
Code:
RemoveHandler .json
RemoveInputFilter .json
RemoveType .json

-tom-
Back to top


Reply to topic   Topic: 405 error on POST request for static content View previous topic :: View next topic
Post new topic   Forum Index -> Apache