Setting up your virtual host


We are going to point the virtual host to aura.localhost. If you are in a debain based OS, you want to create a file /etc/apache2/sites-available/aura2.localhost.conf with the below contents.

<VirtualHost *:80>
    ServerName aura2.localhost
    ServerAlias www.aura2.localhost
    DocumentRoot /path/to/project/web
    <Directory /path/to/project/web>
        DirectoryIndex index.php
        AllowOverride All

path/to/project is where you installed the aura/web-project or aura/framework-project.

NOTE: Apache 2.4 users might have to add Require all granted below AllowOverride all in order to prevent a 401 response caused by the changes in access control.

Enable the site using

a2ensite aura2.localhost

and reload the apache

service apache2 reload

Before we go and check in browser add one more line in the /etc/hosts   aura2.localhost www.aura2.localhost


In ubuntu 12.04 the configuration file is under /etc/nginx/sites-available

server {
    listen   80;
    root /path/to/aura-project/web;
    index index.php index.html index.htm;
    server_name aura2.localhost;

    location / {
        try_files $uri $uri/ /index.php?$args;

    error_page 404 /404.html;

    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;

Check http://aura2.localhost in your favourite browser.