# Vector API Apache Configuration File
#listen 8080
<VirtualHost *:80>
    SetEnv APPLICATION_ENV "development"
    # Standard settings
    DocumentRoot "{{ orchard_api_document_root }}/public"
    DirectoryIndex index.php
    RewriteEngine off
    ErrorLog "{{orchard_api_log_path}}-error-log"
    ServerName {{ vapi_host }}
    <Directory "{{ orchard_api_document_root }}/public" >
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} -s [OR]
      RewriteCond %{REQUEST_FILENAME} -l [OR]
      RewriteCond %{REQUEST_FILENAME} -d
      RewriteRule ^.*$ - [NC,L]
      RewriteRule ^.*$ /index.php [NC,L]
      SetEnv APPLICATION_ENV development
      Options -Indexes +FollowSymLinks
      AllowOverride None
      Allow from all
    </Directory>
</VirtualHost>
