Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here's my httpd.conf thats using mod_vhost_alias. The docroot is always in /home/username/domains/domainname/public_html.

<VirtualHost *:80>
        ServerName *
    ServerAlias *
        VirtualDocumentRoot  /home/%-3/domains/%0/public_html
        UseCanonicalName OFF

  <Directory /home/*>
        AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes
        Options -Includes -Indexes +ExecCGI +SymLinksIfOwnerMatch +FollowSymLinks

That works but the problem is with logs and custom php.ini. As far as I now I cannot just do it that way:

CustomLog /var/log/httpd/domains/* bytes
OR something like:
FcgidWrapper '/usr/local/php/php5/bin/php-cgi -c /usr/local/php/php5/etc/users/%-3.ini' .php

Any idea how can I get proper path for logs and php.inis ? I've looked at mod_macro but it still requires "Use xxxx" declaration and apache reload, wich is not an option.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.