Re: Location of DocumentRoot or www on Leopard...



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
.



Relevant Pages

  • Re: Compaq Secure Web Server 1.3
    ... > I can't seem to get the web server up and running. ... >configuration file, plus I checked the httpd.conf file, I have a index.html ... Without that, Apache won't ... and see if you actually have any Apache processes running. ...
    (comp.os.vms)
  • RE: New Web Server
    ... Subject: New Web Server ... I have read all of your responses up to this point, ... Then pick the apache module... ... loaded from the ports. ...
    (freebsd-questions)
  • Building Web from local drive map
    ... I've run into an issue building a web using a local drive map. ... When you attempt to run the page from the web server you get the following ... An error occurred during the processing of a configuration file ... Attempting download of new URL ...
    (microsoft.public.vsnet.ide)
  • Re: any try this forth webserver? the code looks incomprehensible to me http://www.jwdt.com/~paysan/
    ... statements; what are the control variables in a loop; what arguments ... web server works, then none of this is going to make any sense to ... web servers like Apache, your mind seemed to latch onto the notion ... He only cares about text/html, ...
    (comp.lang.forth)
  • Re: PHP + IIS + Visual Studio.NET 2005 and Apache
    ... The apache version that comes with VS.Php however will shut itself down ... Apache or IIS. ... to use the DBG module installed inside PHP inside the version of Apache ... bundled with VS.php in case you do not have any other web server installed. ...
    (alt.php)

Loading