Apache: VirtualHost *:80 — mixing * ports and non-* ports with a NameVirtualHost addr

Discussion in 'Apache' started by tirengarfio, Jun 14, 2010.

  1. #1
    Hi,

    when i add the line below to /etc/apache2/apache2.conf I get the error belower when i restart apache:

    Include
    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-vhosts.conf
    
    Code (markup):
    This is my httpd-vhosts.conf file:
    
    #
    # Use name-based virtual hosting.
    #
    NameVirtualHost *:80
    
    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ServerName or ServerAlias in any <VirtualHost> block.
    
    <VirtualHost *:80>
       ServerName tirengarfio.com
       DocumentRoot /var/www/rs3
    
       <Directory /var/www/rs3>
          AllowOverride All
          Options MultiViews Indexes SymLinksIfOwnerMatch
          Allow from All
       </Directory>
    
       Alias /sf /var/www/rs3/lib/vendor/symfony/data/web/sf
       <Directory "/var/www/rs3/lib/vendor/symfony/data/web/sf">
        AllowOverride All
        Allow from All
       </Directory>
    </VirtualHost>
    Code (markup):
    Any idea?

    Regards

    Javi
     
    tirengarfio, Jun 14, 2010 IP