Apache in MAC OS X

Posted by Michal K. on Server Fault See other posts from Server Fault or by Michal K.
Published on 2012-10-02T18:11:23Z Indexed on 2012/10/02 21:41 UTC
Read the original article Hit count: 188

Filed under:
|
|

I have problems with apache on MAC OS Lion 10.7.5.

I have VirtualHosts:

<VirtualHost *:80>
    ServerName devel.dev
    DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
    ServerName test.dev
    DocumentRoot /var/www
  <Directory "/var/www">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

I have configured httpd.conf to ServerRoot => /usr/htdocs (empty directory). test.dev and devel.dev says always "It works!". Why ? In /var/www I have index.php which contains only one letter "k" (for tests).

Edit, more info: I have restart apache milion times. File with VirtualHosts is included. error.log:

[Tue Oct 02 20:03:55 2012] [notice] caught SIGTERM, shutting down
[Tue Oct 02 20:03:55 2012] [warn] mod_bonjour: Cannot stat template index file '/System/Library/User Template/English.lproj/Sites/index.html'.
[Tue Oct 02 20:03:55 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 02 20:03:55 2012] [notice] Digest: done
[Tue Oct 02 20:03:55 2012] [notice] Apache/2.2.22 (Unix) DAV/2 PHP/5.3.15 with Suhosin-Patch configured -- resuming normal operations

When I stop apache, localhost still displays It works!

© Server Fault or respective owner

Related posts about macosx

Related posts about apache2