check if the hosts file of your host is being updated.

alvaro

On Tue, Mar 27, 2018 at 6:56 PM, <ama...@themachinery.fr> wrote:

>
> Hello,
>
> i'm trying to use vagrant hostmanager.
> First i create my vagrantfile :
>
> Vagrant.configure("2") do |config|
>
>
>  config.vm.box = "ubuntu/xenial64"
>
>
>     config.hostmanager.enabled = true
>     config.hostmanager.manage_host = true
>     config.hostmanager.ignore_private_ip = false
>     config.hostmanager.include_offline = true
>     config.vm.define 'yruama' do |node|
>         node.vm.hostname = 'yruama-host'
>         node.vm.network :private_network, ip: '192.168.0.25'
>         node.hostmanager.aliases = %w(mysql.roz admin.lenaroze.roz
> lenaroze.roz)
>     end
>     config.vm.provision :shell, path: "bootstrap.sh"
> end
>
> Second i update my host file with vagrant hostmanager :
>
>
> <https://lh3.googleusercontent.com/-YQEh5-TUmRw/Wrp3XD2CQFI/AAAAAAAAAAk/VVA6ao1B8OQReaBdEgpEWTkW5xw7UpeMACLcBGAs/s1600/187e5eb149ecd802c977ee61e96cbfd1.png>
>
>
>
> Third i create my vhost :
>
> <VirtualHost *:80>
>         ServerAdmin ama...@themachinery.fr
>         ServerName lenaroze.roz
>         DocumentRoot /var/www/html/admin/public
>         SetEnv APPLICATION_ENV development
>         DirectoryIndex index.php
>         AddDefaultCharset utf-8
>         # Header set Access-Control-Allow-Origin "*"
>         <Directory /var/www/html/admin/public>
>                 Options -Indexes +FollowSymLinks -MultiViews
>                 AllowOverride All
>                 Order allow,deny
>                 Allow from all
>         </Directory>
>         ErrorLog ${APACHE_LOG_DIR}/yruama/error.vv.bo.log
>         # Possible values include: debug, info, notice, warn, error, crit,
>         # alert, emerg.
>         LogLevel warn
>         CustomLog ${APACHE_LOG_DIR}/yruama/access.vv.bo.log combined
> </VirtualHost>
>
> But when i'm going on lenaroze.roz i'm redirect to google ...
>
> What i'm doing wrong ?
> Thanks
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/vagrant-up/acccbaf2-df5e-4f17-9a02-2909c2e702e5%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/acccbaf2-df5e-4f17-9a02-2909c2e702e5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewjArfTnWV-16emH2RGCeDHV5y3pAwiKdF9HL4as%3DxuYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to