Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm attempting to set up a domain alias via Pre VirtualHost Include and I'm recieving the following error:

An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf Exit signal was: 0 Exit value was: 1 Output was: --- Syntax error on line 15 of /usr/local/apache/conf/includes/pre_virtualhost_global.conf: CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" clause (see docs) ---

Basically I have two domains, the main domain has an opencart installation within a directory (/buy) and I'm attempting to use the multi-store function which allows you to administer multiple stores on multiple domains via the one opencart dashboard.

My issue is that I have the opencart installations within the /buy directory so I have been given the following code which should allow me to use this functionality over the multiple cPanel accounts within the same VPS.

Alias /buy /home/originaldomain/public_html/buy/
DocumentRoot /home/newdom/public_html
## User newdom # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup newdom newdom
<IfModule mod_ruid2.c>
RUidGid newdom newdom
CustomLog /usr/local/apache/domlogs/ “%{%s}t %I .\n%{%s}t %O .”
CustomLog /usr/local/apache/domlogs/ combined
ScriptAlias /cgi-bin/ /home/newdom/public_html/cgi-bin/

Does anyone know how to get this code to work?


share|improve this question
please note the '' and 'newdom' throughout the code is there for demonstration purposes. – Poundtrader Nov 1 '12 at 15:44

The problematic line is:

CustomLog /usr/local/apache/domlogs/ combined

Apache isn't recognizing combined as a valid log format nickname. The nicknames come from prior LogFormat directives; you will have to find the correct one, and ensure your configuration is loaded after it occurs. If it does not occur or you don't want to do this, use the intended format string instead of the nickname.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.