httpd serving wrong DocumentRoot
Mark Weaver
mdw1982 at mdw1982.com
Wed Mar 16 19:13:16 UTC 2005
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>
thats about all there is to it for a default apache installation.
--
Mark
-----------------------------------------------------------
Paid for by Penguins against modern appliances(R)
Linux User Since 1996
Powered by Mandrake Linux 8.2, 10.0 & RH Fedora Core 3
More information about the fedora-list
mailing list