LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-09-2010, 08:58 AM   #1
bresnen2112
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Angry Linux (Apache) webserver help needed


I'm trying to send files from a Unix server using http/curl to a Linux webserver running Apache. I get the following PUT error message when and the file does not send:

<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PUT is not allowed for the URL

Any help would be greatly appreciated!
 
Old 06-09-2010, 09:50 AM   #2
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Tell me, what do you think 'Method not allowed' in response to trying to 'put' a file on it means? :-)

You can either set up APACHE to allow put (which I would *not* do - but if you really want to do this refer to the Apache documentation) or use FTP/SSH to place the file on the server.

Any particular reason you want to use PUT instead of ftp/ssh?
 
Old 06-09-2010, 09:58 AM   #3
tracertong
Member
 
Registered: Jun 2010
Posts: 34

Rep: Reputation: 16
'PUT' is not supported by default in Apache webservers anymore, you have to turn it on. It is retained as a feature, for purposes of legacy support. Allowing remote users to PUT data onto your web server is something that is fraught with dangers, but see this on Apache put:

www.apacheweek.com/features/put

I'm not sure what you are aiming for, but most jobs involving uploading nowadays are delegated to a dedicated file-transfer program, such as scp, which can be separately monitored and controlled (sending stuff through port 22 is always a good option to consider, anyway, since the transmission is encrypted for you, with the encryption/decryption being handled for you, by SSH, at both ends of the transaction).

PUTs over unencrypted pipes mean you data travels in plain sight of anyone that can intercept the packets.

But essentially, your site is telling you exactly what the situation is - which could be paraphrased something like this: "PUT is not allowed because we turned it off, and we turned it off on purpose, because it's dangerous." The link above gives some guidance as to how to turn it on, but I'd be more inclined to seek out a more secure alternative.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using linux and apache to run webserver out of home loganpelletier Linux - Newbie 2 08-18-2006 08:26 PM
How did my linux-apache webserver get hacked? markie Linux - Security 18 10-19-2004 08:07 PM
3 node Apache WebServer Linux Cluster youngclusterman Linux - Networking 12 01-29-2004 12:13 PM
Linux 6.2, Apache webserver and Flash 4 ? gargoyle Linux - General 0 07-11-2001 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration