Fedora Linux Support Community & Resources Center
  #1  
Old 10th August 2009, 04:53 PM
salex's Avatar
salex Offline
Registered User
 
Join Date: Jul 2009
Posts: 33
linuxfedorafirefox
Apache: need help

Hi friends,

I tried to make my Apache not to serve any requests except GET and POST.
I Added:

<Limit GET POST>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST>
Order deny,allow
Deny from all
</LimitExcept>

Anyway if you:
telnet 1234.com 80
OPTIONS / HTTP/1.0

The result is as follows:
HTTP/1.1 200 OK
Date: Mon, 10 Aug 2009 15:41:21 GMT
Server: Apache
Allow: GET,HEAD,POST,OPTIONS,TRACE
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8

Where could be a problem?
Thanks a lot for you replies!!!

Last edited by salex; 10th August 2009 at 05:02 PM.
Reply With Quote
  #2  
Old 10th August 2009, 06:59 PM
salex's Avatar
salex Offline
Registered User
 
Join Date: Jul 2009
Posts: 33
linuxfedorafirefox
Hey!If it so easy please just advice, that would be helpful enough.
Reply With Quote
  #3  
Old 11th August 2009, 05:46 AM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473
linuxfedorafirefox
Where did you add that in your httpd.conf file? If you can, post the output of you apache config file, that may help.
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
  #4  
Old 11th August 2009, 07:02 AM
salex's Avatar
salex Offline
Registered User
 
Join Date: Jul 2009
Posts: 33
linuxfedorafirefox
Quote:
Originally Posted by neogranas View Post
Where did you add that in your httpd.conf file? If you can, post the output of you apache config file, that may help.
Hi neogranas,

Thanks for the reply. I added it twice: in VirtualHost section and before in Main' server configuration
here is info from the httpd.conf:
.....
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/var/www/html"> # it is just my default page and that is all
Options None
AllowOverride None
Order allow,deny
Allow from all
<Limit GET POST>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
.........
<VirtualHost *:80>
ServerName mypage.org
ServerAlias www.mypage.org
DocumentRoot /mydirectory
ErrorLog /mydirectory/error.log
TransferLog /mydirectory/access.log

<Directory /mydirectory>
AllowOverride None
Options None
<Limit GET POST>
Order allow,deny
Allow from all
</Limit>
</LimitExcept>
Order allow,deny
Allow from all
</Directory>

Thanks for any help!!!
Reply With Quote
  #5  
Old 19th August 2009, 01:38 AM
Vector's Avatar
Vector Offline
Banned
 
Join Date: Jul 2006
Location: Transgression
Age: 32
Posts: 1,183
linuxfedorafirefox
<Directory /mydirectory>
AllowOverride None
Options None
<Limit GET POST>
Order allow,deny
Allow from all
</Limit>
</LimitExcept>
Order allow,deny
Allow from all
</Directory>

Is not properly nested. Should be:
<Directory /mydirectory>
AllowOverride None
Options None
<Limit GET POST>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST>
Order allow,deny
deny from all
</LimitExcept>
</Directory>

But if you already have this specified for the root web directory, then why duplicate it?
Reply With Quote
  #6  
Old 21st August 2009, 12:25 PM
salex's Avatar
salex Offline
Registered User
 
Join Date: Jul 2009
Posts: 33
windows_xp_2003firefox
Thanks!!!

Dear Alex-Grim,

Yes, you are right I have already solved it like you posted and removed Limit&LimitExcept for the root web directory. Seems I was too tired that time.

Thanks a lot anyway!!!
Reply With Quote
  #7  
Old 21st August 2009, 12:26 PM
salex's Avatar
salex Offline
Registered User
 
Join Date: Jul 2009
Posts: 33
windows_xp_2003firefox
We can close this thread.
Reply With Quote
Reply

Tags
apache

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure apache 2 with Apache tool box 1.5.72 kalpana Servers & Networking 2 18th February 2006 08:45 AM
How to change apache email address apache@localhost to admin@proporta.lk niloshima Servers & Networking 2 17th November 2005 11:36 AM
Upgrading to Apache Apache/2.0.52 - Lost ProxyPass foto Servers & Networking 1 24th July 2005 08:01 PM
apache fc3 questions: starting apache & file permissions mexicoshanty Servers & Networking 2 16th June 2005 07:56 AM
Custom apache module doesn't work in Apache 2 Skeptical Using Fedora 2 6th December 2004 07:32 AM


Current GMT-time: 04:57 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat