httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evan Platt <>
Subject Re: [users@httpd] Apache on Mac: Can't choose DocumentRoot
Date Wed, 31 Dec 2008 19:08:52 GMT
Modify httpd.conf. Add something silly.

"Hello world".

Restart apache. Do you get an error?

If not, you are modifying the wrong httpd.conf .

At 02:48 AM 12/31/2008, you wrote:

>I'm new to mac, but I have started the Apache http service in OS X 10.5.6.
>I tried out the software iWeb that comes along with the OS, and created a
>website that I "published to folder" — my web root (/Library/WebSerrver).
>Now if I browse to http://localhost I won't end up at my prefered document
>root, but at the folder iWeb created for the website.
>I have edited /Private/etc/apache2/httpd.conf to make sure DocumentRoot
>looks like this:
>DocumentRoot "/Library/WebServer/Documents"
>DirectoryIndex in the same file looks like this:
><IfModule dir_module>
>DirectoryIndex index.php
>and /Library/WebServer/Documents/index.php looks like this:
><?php phpinfo(); ?>
>After making changes to httpd.conf I restarted the apache service, but
>http://localhost still redirects to http://localhost/Website/empty.html
>(which iWeb created).
>Am I editing the wrong file? Obviously the settings remain unchanged
>somewhere. But where?
>View this message in context: 
>Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message