Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I changed an htaccess file on my server, and am not seeing the changes. Do I need to restart Apache if I modified an htaccess file?

Update: So I don't think this is my problem. Please see my related question: Why is my htaccess file preventing access to my MP3 file?

share|improve this question

migrated from stackoverflow.com May 6 '10 at 14:26

This question came from our site for professional and enthusiast programmers.

    
Am I the only one shocked that this information isn't here: httpd.apache.org/docs/2.2/howto/htaccess.html? (It's in the WP article en.wikipedia.org/wiki/Htaccess but that's hardly canonical.) @OP: I can't see how it would be necessary, since .htaccess files are used by shared hosting providers to allow customers to do their own config. –  T.J. Crowder May 6 '10 at 14:29
add comment

2 Answers 2

up vote 7 down vote accepted

No you don't. Make sure the htaccess is really loaded. Take a look at your access log, for example /var/log/apache/access.log

share|improve this answer
    
Hmm...I don't have an apache directory in /var/log –  Andrew May 6 '10 at 14:38
    
Maybe /var/log/apache2/access.log –  Johan May 6 '10 at 14:41
    
I don't have anything in /var/log that looks like Apache logs. Maybe there are no logs? –  Andrew May 6 '10 at 14:45
    
on some systems it's /var/log/httpd-access and /var/log/httpd-error –  Chris S May 6 '10 at 15:06
    
depending on how you installed apache it can also end up in /usr/local/apache2/logs or something along those lines –  Catherine MacInnes May 6 '10 at 15:37
add comment

It's already been answered, however you don't need to reload as they are read each time a request is made.

This is why on high performance sites you should avoid use them as you are causing an extra I/O event per request. When you're working with tens of thousands of hits an hour it's just too much overhead.

Coops.

share|improve this answer
add comment

Your Answer

 
discard

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.