My configuration:

This works:

=== start ===
NameVirtualHost *
<IfDefine DEFAULT_VHOST>
    <VirtualHost *>
        ServerName pool.ntp.org
        ServerAlias *.pool.ntp.org
        Redirect permanent / http://www.pool.ntp.org/
    </VirtualHost>
</IfDefine>
                                               
<VirtualHost *>
    ServerName knus.info
    DocumentRoot "/var/www/localhost/htdocs"
    <Directory "/var/www/localhost/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
       
    </Directory>
       
    <IfModule peruser.c>
        ServerEnvironment apache apache
        MinSpareProcessors 4
        MaxProcessors 20
    </IfModule>
</VirtualHost>
<VirtualHost *>
        ServerName www.knus.info
        ServerAlias *.knus.info
        Redirect permanent / http://knus.info
</VirtualHost>
=== end===

This does not work:

=== start ===
NameVirtualHost *
<VirtualHost *>
        ServerName knus.info
    DocumentRoot "/var/www/localhost/htdocs"
    <Directory "/var/www/localhost/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
       
    </Directory>
       
    <IfModule peruser.c>
        ServerEnvironment apache apache
       
        MinSpareProcessors 4
        MaxProcessors 20
    </IfModule>
</VirtualHost>
<VirtualHost *>
        ServerName www.knus.info
        ServerAlias *.knus.info
        Redirect permanent / http://knus.info
</VirtualHost>
<IfDefine DEFAULT_VHOST>
<VirtualHost *>
        ServerName pool.ntp.org
        ServerAlias *.pool.ntp.org
        Redirect permanent / http://www.pool.ntp.org/
</VirtualHost>
</IfDefine>
=== end===

/Rune
_______________________________________________
timekeepers mailing list
[email protected]
https://fortytwo.ch/mailman/cgi-bin/listinfo/timekeepers

Reply via email to