Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a php developer and have recently decided to make one of my Magento extensions commercial. I have downloaded and configured MageParts CEM Server and that is all working perfectly in regard to licencing and delivery of module packages. The only issue is that the directory that the packages are stored in could be accessed by anyone. I tried this in a .htaccess file, but now it is not working.

<Files services.wsdl>
allow from all

deny from all

Clients are receiving a 403 Forbidden response. Have I done something wrong in the .htaccess file or would there be a better way to secure the directory?

Any help would be greatly appreciated.

share|improve this question
up vote 0 down vote accepted

You should also use "Order Deny,Allow" directive. Apache's allow/deny directives a somewhat tricky to understand.

share|improve this answer
Thanks for the tip. I tried this but it made no difference. Would it be possible for you to post an example? – Jack Jan 17 '11 at 12:05
Order deny,allow <Files services.wsdl> allow from all </Files> Deny from all – gelraen Jan 17 '11 at 12:28
Thanks for the example but this is still producing the same error. – Jack Jan 17 '11 at 13:25
Just checked: – gelraen Jan 17 '11 at 14:35
Looks a bit ugly. "Conflict" may be if "services.wsdl" is not really existing file. <Files> directive controls access to filesystem, so if it is rewrited to other filename you should allow access to that file or use <Location|LocationMatch> directives instead. – gelraen Jan 17 '11 at 14:53

How about

deny from all

<Files services.wsdl>
    allow from all


share|improve this answer
No luck with that either. Still the same 403 message. – Jack Jan 17 '11 at 11:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.