#pridavam
#NameVirtualHost mujweb.info
#konec

<VirtualHost mujweb.info:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /home/WEB/projekty/mujweb.info
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
ServerAlias www.mujweb.info
ServerName www.mujweb.info
RewriteEngine  on
RewriteCond    %{HTTP_HOST}  ^mujweb.info
RewriteRule    ^(.*)$        /home/WEB/projekty/mujweb.info/$1 [L]
RewriteCond    %{HTTP_HOST}  ^mujweb.info.*
#RewriteRule    ^(.*)$        /www/$1 [L]
RewriteRule    ^(.*)$        /home/WEB/projekty/mujweb.info/$1 [L]
RewriteCond    %{HTTP_HOST}  ^(.*)\.mujweb\.info
RewriteRule    ^(.*)$        /%1/$1 [L]

#RewriteCond	%{HTTP_HOST}  (.*)\.([^.]+)\.([^.]+)$
#RewriteRule 	^/(.*)$       /home/WEB/projekty/mujweb.info/%2.%3/%1/$1 [L]

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
 
        ErrorLog /var/log/apache2/blbe/mujweberror.log
 
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
 
        CustomLog /var/log/apache2/blbe/mujwebaccess.log combined
 
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
 
</VirtualHost>
