Author Topic: cannot occur within VirtualHost section  (Read 9121 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
cannot occur within VirtualHost section
« 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>

Offline
*
Re: cannot occur within VirtualHost section
« Reply #1 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.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services