Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Okay, it's clearly been a while since I've used linux (and apache). I'm just trying to create a new folder "newdir" under /var/www/html/ and editing index.html, which I'm only allowed to do with sudo, so all my files are "rooted". :-(

..and then, when I go to www.myserver.com/newdir/index.html, it's forbidden! (suprising...NOT)

So, my question is this. How do I correctly do this? Must I add every folder in the .conf file or something? I really couldn't find an good howto for this.

What I've done so far: only installed apache2 on ubuntu, nothing else.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

chown or if you made directories chown -R, a less secure option is to make the apache user a login user and do your work from there

share|improve this answer
    
Haha, was THAT all? Thought I've tried that, but thanks anyway. So I don't need to create an entry for each directory in any apache config? –  Mikael Å Nov 24 '10 at 15:33
    
the apache config deals with location / , and is recursive. –  Sirex Nov 24 '10 at 15:38
    
Okay, so when /var/www/ is defined I should be good to go? Anything else I should worry about? –  Mikael Å Nov 24 '10 at 15:40

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.