# This section is only necessary to enable old hack of calling
# WS3 from WS4. It will go away, hopefully soon.

<VirtualHost 127.0.0.1:80>
    ServerAdmin webmaster@catchmedia.com
    ServerName localhost.catchmedia.com
	
    #DocumentRoot /var/www/
    DocumentRoot /opt/cm/www

    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    # Needed for python support
    AddHandler mod_python .py

    <Directory /opt/cm/www/web_services/devices/appsdk>
        AllowOverride All
        Options FollowSymLinks
    </Directory>

    <Directory /opt/cm/www/web_services/apps>
        AllowOverride All
        Options FollowSymLinks
    </Directory>

    <Directory /opt/cm/www/web_services/partners>
        AllowOverride All
        Options FollowSymLinks
    </Directory>

    # Do not log requests to ldirectord.php, .ico or from localhost
    SetEnvIf Request_URI "^/ldirectord\.php$" dontlog
    SetEnvIf Request_URI "token" dontlog
    SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
    SetEnvIf Request_URI \.ico dontlog
    CustomLog /var/log/apache2/access.log combined env=!dontlog
                                
#	CustomLog /var/log/apache2/access.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>

    <Directory /opt/cm/www/promo>
        AllowOverride All
    </Directory>
</VirtualHost>
