I'm quite new to Vagrant (like started 2 hours ago), hence i decided to 
follow the docs at https://www.vagrantup.com/docs/getting-started/

I ran into trouble when i ran the provisioning script given in the docs - 

#!/usr/bin/env bash

apt-get update
apt-get install -y apache2if ! [ -L /var/www ]; then
  rm -rf /var/www
  ln -fs /vagrant /var/wwwfi


The conditional statement is supposed to change the *DocumentRoot* of Apache to 
our */vagrant* directory.
But isn't the DocumentRoot of Apache */var/www/html*?

I decided to follow the docs nevertheless but upon requesting for 
the index.html page I created inside my project directory(/vagrant inside vm) i 
got a 404 response.

But on changing to the provisioning script to -  

#!/usr/bin/env bash

apt-get update
apt-get install -y apache2if ! [ -L /var/www/html ]; then
  rm -rf /var/www/html
  ln -fs /vagrant /var/www/htmlfi


I was able to GET index.html.

Please let me know what might have gone wrong or if the docs need an 
update. I'll be very eager to make a PR.
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/6f83afa5-5f6c-4217-a790-9e140d3881f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to