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 know that Nginx does not support .htaccess files, but if you used Nginx as a reverse proxy (is that the correct term, Nginx handles static, Apache handles dynamic) with Apache, would you be able to use .htaccess files then?

share|improve this question

If you use Nginx as a reverse proxy to Apache, then Nginx is "passing along" requests to Apache on behalf of the end client and delivering the responses back to the client. Think of it as a man-in-the-middle sort of situation (because it is).

If you configure Nginx to serve static files, then it will do just that... whether or not you have any "wishful thinking" rules in the ht-access file. It doesn't know anything about ht-access, Apache does. On the other hand, for any requests that Nginx passes on to Apache, well... Apache is going to act like it always does.

share|improve this answer

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.