Closed yruama closed 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 :
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
Hello,
i'm trying to use vagrant hostmanager. First i create my vagrantfile :
Second i update my host file with vagrant hostmanager :
Third i create my vhost :
But when i'm going on lenaroze.roz i'm redirect to google ...
What i'm doing wrong ? Thanks