Apache trouble

I have two big problem with apache.

1 - I want to permit post method for an url : http://www.mysite/php/formmail.php
Every time I try to send the form i got error : 405 method not allow.
How can i permit post method ???

2 - I have a web page who can access with the url : www.mysite/golf  ( i created an alias for it)
     Alias /golf   "/home/httpd/html/golf/index.html"  

but i want to redirect www.mysite/golf/ to  www.mysite/golf. I found information about a module : mod_rewrite but i didn't undestand how to use it.


thanks
jaubmAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

asbharadwajCommented:
Decide what directories on the virtual server you wish to make available for POST. For each directory hierarchy, add a configuration block to your conf file similar to the following:

<Directory $PATH> /* "$PATH" is to be replaced with the directory name under your home directory /*
AllowOverride None
<Limit POST>
order allow, deny
allow from all  /* you can enforce further access restrictions if needed here /*
</Limit>
</Directory>
0
jaubmAuthor Commented:

I change a little bit the code. If i understand you code, you the do the oposite i need. I want to USE the post method not to restrict it

<Directory "/home/httpd/html/php">
   Options all
   AllowOverride None
   <LimitExcept POST>
      order allow,deny
      allow from all
   </LimitExcept>
</Directory>

but that doesn't work

The limit except option is suppose to limit everithing except post methode ??? but i gor against the same method.
Does it have a config who limit the post method for all the server ????

thanks for help
0
jaubmAuthor Commented:
That configuration is suppose to be in http.conf or in other file ??

Now it is in http.conf
0
brabardCommented:
See what the guy have written .
In your config you are allowing all exept post metod .
In his/her config the post metod is allowed .
What about your seond question , do you have smth like :
LoadModule rewrite_module /usr/lib/apache/mod_rewrite.so ?
0
asbharadwajCommented:
>>The limit except option is suppose to limit everithing except post methode

Well Limit or LimitExcept don't limit any methods on your server.
What ever you specify with in  a Limit will be applicable only to the method
you specify in the Limit directive.
That means if you say allow all within a Limit POST directive, that applies only
to the POST method and does not apply to any other methods.
So when you say allow all within a LimitExcept POST diretive, you r saying that
all other methods except POST are to be allowed from everyone.
That obviously wouldnt work for you
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.