Fork me on GitHub



# Necessary to prevent problems when using a controller named "index" and having a root index.php
# more here:
Options -MultiViews

# Disallows others to look directly into /public/ folder
Options -Indexes

# Activates URL rewriting (like
RewriteEngine On

# When using the script within a sub-folder, put this path here, like /mysubfolder/
# If your app is in the root of your web folder, then leave it commented out
RewriteBase /

# Send requests without parameters to _index.php.
RewriteRule ^$  _dvc.php  [L]

# General rewrite rules
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

#RewriteRule !(images\/(.*)|css\/(.*)|js\/(.*))$    _index.php?url=$1 [QSA,L]
RewriteRule ^(.+)$  _dvc.php?url=$1 [QSA,L]

php_value post_max_size 40M
php_value upload_max_filesize 40M

Header unset Pragma
Header unset Last-Modified
Header unset Cache-Control


<VirtualHost *:80>
    ServerName dvc.your.dom

  # expose the public root, note we don't usually store anything here
  DocumentRoot /opt/data/core/[project]/www/

    AccessFileName .htaccess

    # this path needs to include the vendor files & the project files
    <Directory /opt/data/core/>
        AllowOverride All
        Require all granted
        php_admin_value open_basedir /opt/data/core/:/tmp/