httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roparzh Hemon <>
Subject [users@httpd] New virtual host not working
Date Wed, 21 Sep 2016 06:40:08 GMT
I have several working virtual hosts on my Mac. Recently, I tried
to create yet another one by copy-pasting what I did for the others,
but to my surprise the new site doesn't work.

What I did :

  In /private/etc/hosts, insert the line

  In /private/etc/apache2/extra/httpd-vhosts.conf, insert the paragraph

<VirtualHost *:80>
    DocumentRoot "/Users/myusernamehere/Documents/Sites/Show"
    ErrorLog "/private/var/log/apache2/"
    CustomLog "/private/var/log/apache2/" common
    LoadModule php5_module /usr/libexec/apache2/
<Directory /Users/myusernamehere/Documents/Sites/Show>
Require all granted
DirectoryIndex index.php

   But when I type in my browser, the URL is not recognized
and I get redirected to a domain seller website.
   The /private/var/log/apache2/ and
  /private/var/log/apache2/ are empty.

    What did I do wrong ?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message