Webmasters Stack Exchange is a question and answer site for pro webmasters. 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 have a linux server running apache2, I have my own user folder: /home/me/... I added a .htaccess to my folder with:

DirectoryIndex index.html

in it and the server IP is: 123.456.789.111

I tried: http://123.456.789.111/index.html

to no avail. I know I probably doing something wrong, I never used apache.

share|improve this question
Can you post a sanitized copy of your httpd.conf? – mahnsc Oct 9 '11 at 22:22
isnt /etc/apache2/apache2.conf is what you are looking for? I'm running Ubuntu – soulSurfer2010 Oct 10 '11 at 1:12
If you are using the default site, your DocRoot will be /var/www by default. Maybe I'm misunderstanding what it is you are trying to do? Normally, if you start apache up, the default page will be a stick "It works!" page. – mahnsc Oct 10 '11 at 1:26
your IP address is funny :-) – Michał Šrajer Oct 10 '11 at 18:40
up vote 2 down vote accepted
  1. httpd.conf must have already DirectoryIndex for "Main" site
  2. AllowOverrride for <Directory /> container must not be None in order htaccess directives to work
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.