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.

  • 1
    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
  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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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