i forgot to mention taht i already have index.html in that directory. On Thursday, March 12, 2015 at 4:19:33 AM UTC+2, Alvaro Miranda Aguilera wrote: > > echo > > echo "hello" > index.html > > and put that in the document root > > the error is apache is not listing the directory, so you need to put > the static content. > > hope this helps. > > Alvaro. > > On Thu, Mar 12, 2015 at 11:36 AM, Gen Taliaru <[email protected] > <javascript:>> wrote: > > Hi all > > I made a simple vagrant box using hashicorp/precise32 > > with this confugration changes > > config.vm.network :forwarded_port, guest: 80, host: 1234 > > config.vm.network :private_network, type: "dhcp" > > config.vm.synced_folder ".", "/vagrant" > > > > After i logged into vagrant with ssh > > i runned these commands > > sudo apt-get update > > sudo apt-get install apache2 > > > > then i changed in /etc/apache2/sites-enabled/default document root to > > /vagrant > > > > and i restarted the apache server and in the host opened in browser > > http://localhost:1234/ > > And gives me You don't have permission to access / on this server. > > I have tried numerous solution what i have found on google, but none of > > seems to work. > > > > I have tried to add these into synced_folder > > config.vm.synced_folder ".", "/vagrant",id: "vagrant-root" , owner: > > "www-data", group: "www-data", mount_options: ['dmode=777','fmode=777'] > > But no help > > > > I have treid to run Apache with user vagran, still no help. > > > > I have OSX 10.10.2 > > Vagrant 1.7.2 > > VirtualBox 4.3.24 > > > > Can somebody help me with taht problem > > > > > > > > -- > > 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:>. > > For more options, visit https://groups.google.com/d/optout. >
-- 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]. For more options, visit https://groups.google.com/d/optout.
