Skip to content

Instantly share code, notes, and snippets.

@maliMirkec
Last active October 17, 2015 07:59
Show Gist options
  • Save maliMirkec/872169c29837754178a3 to your computer and use it in GitHub Desktop.
Save maliMirkec/872169c29837754178a3 to your computer and use it in GitHub Desktop.
How to add and configure host on Vagrant Phalcon
# add this to /etc/apache2/sites-available/vagrant.conf
# rename "app-name" to your application name
# don't forget to configure your local hosts file
<VirtualHost *:80>
ServerName app-name.app-com
DocumentRoot "/vagrant/www/app-name/"
<Directory "/vagrant/www/app-name/">
Options Indexes Followsymlinks
AllowOverride All
Require all granted
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ /vagrant/www/app-name/public/ [L]
RewriteRule (.*) /vagrant/www/app-name/public/$1 [L]
</IfModule>
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment