Control Web Panel

WebPanel => Apache => Topic started by: ereo on October 06, 2014, 10:34:39 AM

Title: cannot occur within VirtualHost section
Post by: ereo on October 06, 2014, 10:34:39 AM
Hi
i found trouble when restarting apache after configure vhost file on /usr/local/apache/conf, it's say <VirtualHost> cannot occur within <VirtualHost> section, i try to fix it but still same answer
would somebody help me
this is my conf file
Quote
<VirtualHost *:82>
     ServerName unida2.unida.ac.id
     ServerAlias www.unida2.unida.ac.id
     ServerAdmin egi@nurlahosting.net
     DocumentRoot "/home/unida/public_html/unida"
      ScriptAlias /cgi-bin/ "/home/unida/public_html/unida/cgi-bin/
      #
      # Custom settings are loaded below this line (if any exist)
 
      <IfModule mod_suexec.c>
       SuexecUserGroup unida unida
    </IfModule>
     
     <IfModule mod_suphp.c>
             suPHP_UserGroup unida unida
             suPHP_ConfigPath /home/unida
    </IfModule>
     
   <Directory "/home/unida/public_html/unida">
             AllowOverride All
     </Directory>
   
     </VirtualHost>
Title: Re: cannot occur within VirtualHost section
Post by: Administrator on October 06, 2014, 08:01:46 PM
you need to set your shared ip address and after that is done use apache vhost rebuild option to rebuild all your virtual hosts.