1

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.

4
  • 1
    Can you post a sanitized copy of your httpd.conf?
    – mahnsc
    Oct 9, 2011 at 22:22
  • isnt /etc/apache2/apache2.conf is what you are looking for? I'm running Ubuntu Oct 10, 2011 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, 2011 at 1:26
  • your IP address is funny :-) Oct 10, 2011 at 18:40

1 Answer 1

2
  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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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