Hello, The getting started is just a sample guide, from there if you think www/html is too much, and you will be using only html, sure you can update the mount point.
but usually you use www/html www/cgi-bin www/icons etc Alvaro > On 1/04/2016, at 4:31 AM, Mayank Badola <[email protected]> wrote: > > Yeah, that would work, but wouldn't it mean that i'd have to put all my code > inside the /vagrant/html directory? > > On Thursday, 31 March 2016 08:35:37 UTC+5:30, Alvaro Miranda Aguilera wrote: > hello > > on the vagrant file then you can do > > mkdir -p /vagrant/html > echo 'hello' > /vagrant/html/index.html > > rite? > > Alvaro. > > > On Thu, Mar 31, 2016 at 7:15 AM, Mayank Badola <[email protected] > <javascript:>> wrote: > 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/ > <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 apache2 > if ! [ -L /var/www ]; then > rm -rf /var/www > ln -fs /vagrant /var/www > fi > > > 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 apache2 > if ! [ -L /var/www/html ]; then > rm -rf /var/www/html > ln -fs /vagrant /var/www/html > fi > > 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 > <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 > <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] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/6f83afa5-5f6c-4217-a790-9e140d3881f4%40googlegroups.com > > <https://groups.google.com/d/msgid/vagrant-up/6f83afa5-5f6c-4217-a790-9e140d3881f4%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html > <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 > <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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/afaed3ce-08a5-457c-84d9-cacec8b1ceef%40googlegroups.com > > <https://groups.google.com/d/msgid/vagrant-up/afaed3ce-08a5-457c-84d9-cacec8b1ceef%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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/702A8EEB-0F3D-4F1D-B45F-1F6EF93DEBBE%40gmail.com. For more options, visit https://groups.google.com/d/optout.
