Re: Location of DocumentRoot or www on Leopard...
- From: dempson@xxxxxxxxxxxxx (David Empson)
- Date: Wed, 22 Apr 2009 09:42:29 +1200
Steven Thompson <sthompson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
For my private websites on my workstation I put my files in /Macintosh
HD//Users/Steve/Sites/ which can be access by typing in
http://192.168.0.104/~Steve/. But where on my system do I find the
location of the files in the systems DocumentRoot or www as in
http://192.168.0.104/? This is the one that shows the Apache page.
/Library/WebServer/Documents/
(That's the Library folder in the top-level directory on your startup
disk.)
If you want to look up other settings for Apache, its configuration
directory is located here for Mac OS X 10.5:
/private/etc/apache2/
The easiest way to get there is "Go to Folder" in Finder, since /private
is normally hidden.
The main configuration file is here:
/private/etc/apache2/httpd.conf
Everything in this directory is owned by the root user, so editing it is
a little complicated unless you have the right tools. I wouldn't
recommend attempting this without at least a basic understanding of
administering the Apache web server, but at least reading the file may
give you some useful hints to how it is set up by default.
For anyone running 10.4 or earlier, the web server DocumentRoot is in
the same place, but the web server configuration files are in:
/private/etc/httpd/
Note that 10.5's web sharing uses Apache 2.x, while 10.4 and earlier use
Apache 1.x.
Note also that if you have Mac OS X Server, its Server Admin tools have
a graphical user interface to configure the web server, which is a lot
easier than editing the text-based configuration file (and editing the
configuration file directly may interfere with the ability of the GUI
tools to edit the configuration).
--
David Empson
dempson@xxxxxxxxxxxxx
.
- References:
- Location of DocumentRoot or www on Leopard...
- From: Steven Thompson
- Location of DocumentRoot or www on Leopard...
- Prev by Date: Re: Safari strangeness
- Next by Date: Re: Safari strangeness
- Previous by thread: Re: Location of DocumentRoot or www on Leopard...
- Next by thread: Help!!! Asian Keyboard Inputs Disappeared!
- Index(es):
Relevant Pages
|
Loading