[macOS] Problem with hostmanager

32 views
Skip to first unread message

ama...@themachinery.fr

unread,
Mar 27, 2018, 12:56:51 PM3/27/18
to Vagrant


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 :



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

Alvaro Miranda Aguilera

unread,
Mar 27, 2018, 1:53:42 PM3/27/18
to vagra...@googlegroups.com
check if the hosts file of your host is being updated.

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+unsubscribe@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.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

ama...@themachinery.fr

unread,
Mar 27, 2018, 2:26:34 PM3/27/18
to Vagrant
What do you mean ?
I don't understand sry

On vagrant or osx ?
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

Alvaro Miranda Aguilera

unread,
Mar 28, 2018, 2:47:55 AM3/28/18
to vagra...@googlegroups.com
On your host machine that is the computer where the VM is being created.

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/ce020e15-afd6-44d6-a35b-d34442b9ec9b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

ama...@themachinery.fr

unread,
Mar 28, 2018, 3:17:44 AM3/28/18
to Vagrant
Hey' !

i post a screenshot of my /etc/hosts file in my first post :


So, yes, the host file has been updated




--
Alvaro

Reply all
Reply to author
Forward
0 new messages