httpd serving wrong DocumentRoot
Duncan Lithgow
duncan at lithgow-schmidt.dk
Wed Mar 16 19:59:13 UTC 2005
On Wed, 2005-03-16 at 14:13 -0500, Mark Weaver wrote:
> Duncan Lithgow wrote:
> > Okay, thanks all for your suggestions. I think the problem here is that
> > I'm used to windows where I can basically stick anything just about
> > anywhere and it works fine. I understand why that is silly, but it's
> > what i got used to... so lets start from scratch.
> >
> > a.) where is the *most logical place* for me to put the files i want to
> > serve and work on?
> > b.) what will i need to change from the default configurations? ( apart
> > from commenting out /etc/httpd/conf.d/welcome.conf )
> >
> > I'd just really love to make this work soon - it's really holding up
> > some projects... I nearly went back and got started in windows again!
> >
> > Duncan
> >
>
> Hi Duncan,
>
> The apache "out-of-the-box" settings will work just fine. Place your
> files to be served in /var/www/html and away you go.
>
> if you are going to place your web files inside a directory that is a
> sub-dir of /var/www/html like /var/www/html/duncan_projects, then you
> will need to create a Directory container so apache knows where they are
> and knows exactly how it should serve those files:
>
> <Directory "/var/www/html/duncan_projects">
> AllowOverride All
> Options ExecCGI # if you're going to use (.pl/.cgi - cgi-bin)
> </Directory>
Yup, i've started to learn what that's for now
> thats about all there is to it for a default apache installation.
Thanks, but by default I can't write to "var/www/html" surely I
shouldn't edit everything as root!?
What permissions should I put on that directory? Is this how it's
usually done for developing websites? I just got my head around having
a /home folder and now I seem to be putting my stuff all around - is
there a conceptual error oging on in my expectations?
Thanks for the help Mark
Duncan
More information about the fedora-list
mailing list