title: confusing about apache virtual host directive
body: <p>Im having hard times trying to figure it out how to make this particularry configuration to apache webserver in order to fit my needs. Im running centOS6 and i have 4 different IP addresses and im trying to add :
  the first IP to be listed for 10 domains
  the second IP address to be listen for other 10 domains
  the third IP address to be listen for another 10 domains
  the four ip address to be listen for another 10 domains
  In httpd.conf i have added Listen Ip:port - which is the first ip address asociated with first 10 domains and everything is fine here.This is the file for each domain from /httpd/conf.d :</p>
  
  <pre><code>NameVirtualHost *:80
  
  &lt;Directory "/var/www/www.my url.com"&gt;
    Options +Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  &lt;/Directory&gt;
  
  &lt;VirtualHost *:80&gt;
    ServerName www.my url.com
    ServerAlias www.www.my url.com www.my url.com
    DocumentRoot /var/www/www.my url.com
  &lt;/VirtualHost&gt;`
  </code></pre>
  
  <p>The problem starts with the another round of 10 domains having the second ip address. This is the directives for each of those domains:</p>
  
  <pre><code>Listen 151.x.x.x:8080
  NameVirtualHost 151.x.x.x:8080
  
  &lt;Directory "/var/www/Myurl.com"&gt;
    Options +Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  &lt;/Directory&gt;
  
  &lt;VirtualHost 151.x.x.x:8080&gt;
    ServerName www.Myurl.com
    ServerAlias www.Myurl.com Myurl.com
    DocumentRoot /var/www/Myurl.com
  &lt;/VirtualHost&gt; 
  </code></pre>
  
  <p>When im trying to restart the apache server im getting this message:
  Address already in use: make_sock: could not bind to address 151.x.x.x:8080
  no listening sockets available, shutting down
  Unable to open logs</p>
  
  <p>What should be the problem ? and how can i add those different ips to my domains ?? </p>