devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 146 forks source link

[macOS] All link redirect to google #255

Closed yruama closed 6 years ago

yruama commented 6 years ago

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 : 187e5eb149ecd802c977ee61e96cbfd1

Third i create my vhost :

<VirtualHost *:80>
        ServerAdmin amaury@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