Last active
October 17, 2015 07:59
-
-
Save maliMirkec/872169c29837754178a3 to your computer and use it in GitHub Desktop.
How to add and configure host on Vagrant Phalcon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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