One question about "getting started" chapter in docs

13 views
Skip to first unread message

Aitor Méndez

unread,
Oct 18, 2015, 3:44:33 PM10/18/15
to Vagrant
Hi, there is one thing that I do not understand. At "Provisioning" chapter,

https://docs.vagrantup.com/v2/getting-started/provisioning.html

after

vagrant@precise32:~$ wget -qO- 127.0.0.1

I get, in my terminal, the HTML of index.html file (autogenerated by vagrant):
     
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 
<head>
 
<title>Index of /</title>
 
</head>
 
<body>
<h1>Index of /</h1>
<table><tr><th><img
 
src="/icons/blank.gif" alt="[ICO]"></th><th><a
href="?C=N;O=D">Name</a></th><th><a
href="?C=M;O=A">Last modified</a></th><th><a
href="?C=S;O=A">Size</a></th><th><a
href="?C=D;O=A">Description</a></th></tr><tr><th
 
colspan="5"><hr></th></tr>
<tr><td
valign="top"><img src="/icons/unknown.gif" alt="[  
]"
></td><td><a
href="Vagrantfile">Vagrantfile</a></td><td
align="right">18-Oct-2015 15:24  </td><td
align="right">3.1K</td><td>&nbsp;</td></tr>
<tr><td
 
valign="top"><img src="/icons/text.gif"
alt="[TXT]"></td><td><a
href="a.html">a.html</a></td><td
align="right">18-Oct-2015 15:02  </td><td align="right">
20
</td><td>&nbsp;</td></tr>
<tr><td
 
valign="top"><img src="/icons/text.gif"
alt="[TXT]"></td><td><a
href="bootstrap.sh">bootstrap.sh</a></td><td
align="right">18-Oct-2015 14:43  </td><td
align="right">138
</td><td>&nbsp;</td></tr>
<tr><th colspan="5"><hr></th></tr>
</table>

But, I cant see the index.html file at root sinced folder ¿why?

I can't see it trough host file system and I can't see it trough guest file system neither. Ther is no index.html ¿Where is it?

Thank you in advance.

Alvaro Miranda Aguilera

unread,
Oct 18, 2015, 10:22:43 PM10/18/15
to vagra...@googlegroups.com
Hello,

That is the output of directory listing.

As there is no index.html / index.htm the webserver is listing the context.

You can do

echo "Hello world" > /vagrant/index.html

to create one

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+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/de749535-4877-4d1d-a274-760b5a77d258%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Aitor Méndez

unread,
Oct 19, 2015, 1:35:34 PM10/19/15
to Vagrant
Ok, thank you.

Alvaro Miranda Aguilera

unread,
Oct 19, 2015, 5:04:26 PM10/19/15
to vagra...@googlegroups.com
Hi There

So, just to expand the idea.

In some cases, people include a Vagranfile in the project, so each
developer can clone the project, and do vagrant up.

If you would like to try that, make sure you exclude '.vagrant'
directory, since there is where Vagrant keep track of the VM created
for this project.

On top of what you have done, you can make the VM more close to what
you need, say install nodejs, or php, etc.

If you got any question, feel free to reply to this post, or just send
a new one.

Saludos,
Alvaro
> https://groups.google.com/d/msgid/vagrant-up/6956b944-562b-4721-91e0-38b8d044504a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages