Vhosts setup

33 views
Skip to first unread message

Supervan

unread,
Sep 10, 2015, 2:20:40 AM9/10/15
to Vagrant

Hi,

Software used:  Virtualbox 5.04 and Vagrant 1.74 and Puphpet
Os: Win 10

 

Can someone please assist,
I’m having problems pointing and display files in the virtual environment, its reading from the wrong place.

It’s displaying the “Congratulations! You are pretty awesome” page from g:\www\jmscc\html

 

1.       It creates a directory "HTML" inside the g:\www\jmscc
How can i set it so that is read and display the files in the g:\www\jmscc

 

 

               source: 'G:\\www\\jmscc'

                target: /var/www

 

my vhost is…

docroot: /var/www/jmscc
path: /var/www/jmscc

 

2.       Can I run 2 or more virtual hosts inside the same virtual machine..
Got it working on WAMP by changing the httpd-vhosts.conf

<VirtualHost *:80>

                ServerName jmscc.local

                DocumentRoot " G:/www/jmscc/"

 

                <Directory " G:/www/jmscc/">

                                Options Indexes FollowSymLinks

                                                AllowOverride all

                                                                Order Deny,Allow

                                                Deny from all

                                                Allow from 127.0.0.1 

                </Directory>

</VirtualHost>

 

<VirtualHost *:80>

                ServerName woods3.local

                DocumentRoot "G:/www/woods3/"

 

                <Directory "G:/www/woods3/">

                                Options Indexes FollowSymLinks

                                                AllowOverride all

                                                                Order Deny,Allow

                                                Deny from all

                                                Allow from 127.0.0.1 

                </Directory>

</VirtualHost>

 

Thanks

 

 

 

config.yaml

Alvaro Miranda Aguilera

unread,
Sep 10, 2015, 2:55:00 AM9/10/15
to vagra...@googlegroups.com
Hello,

This part seems to be reversed:

Order Deny,Allow

Deny from all

Allow from 127.0.0.1


What is your host OS and the guest os?

Those windows path are on the guest?
> --
> 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/c128fcaf-525b-44bf-81f2-cf73b55c6451%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Supervan

unread,
Sep 10, 2015, 3:45:24 PM9/10/15
to Vagrant
Hi,

Thanks for responding.

My OS is windows 10 and my virtual environment  centos65-x64
The G:/www/jmscc/ is on my pc and must sync to the virtual environment and get displayed.

I would like to implement this sample.

<VirtualHost *:80>

                ServerName jmscc.local

                DocumentRoot " G:/www/jmscc/"

 

                <Directory " G:/www/jmscc/">

                                Options Indexes FollowSymLinks

                                                AllowOverride all

                                                                Order Deny,Allow

                                                Deny from all

                                                Allow from 127.0.0.1 

                </Directory>

               </VirtualHost>


Reply all
Reply to author
Forward
0 new messages