skywaves
12-01-2009, 05:12 AM
Hi. i am trying to create a virtual host using xampp on windows.
i have moodle installation at c:/eclipse/workspace/moodle
in in apache httpd-vhosts.conf i have added following lines
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "c:/eclipse/workspace/moodle"
ServerName moodle.localhost
</VirtualHost>
and in hosts in windows/system32/drivers/etc/
i have added following line 127.0.0.1 moodle.localhost
when i enter moodle.localhost i get 403 error.
what i am doing wrong.
please help
thanks
EDIT: solved
<Directory "c:/eclipsepdt/workspace/moodle">
Order Deny,Allow
Allow from all
</Directory>
i had double double quote in the path ""C:/eclipsepdt/" in Directory directive.
EDIT: FAIL
As described above i tried to create virtual host. i thought i succeeded in creating but today i realized that i have done something wrong.
i have xampp installation and have couple of projects sitting in htdocs folder.
then i installed eclipse pdt and checked out a project in eclipse workspace which i created in c:/eclipsepdt/ folder. after creating virtual host as mentioned above i was able to install moodle from my browser without any issue . today i tried to access my projects in htdocs folder but i was getting object not found error.
what is the right procedure to create virtual hosts.
my httpd-vhosts.conf has following lines
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:\eclipsepdt\workspace"
ServerName moodle.localalhost
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
</VirtualHost>
my requirement is that i should be able to access my projects in htdocs folder as well as in eclipse workspace. is it possible.
please help thanks
i have moodle installation at c:/eclipse/workspace/moodle
in in apache httpd-vhosts.conf i have added following lines
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "c:/eclipse/workspace/moodle"
ServerName moodle.localhost
</VirtualHost>
and in hosts in windows/system32/drivers/etc/
i have added following line 127.0.0.1 moodle.localhost
when i enter moodle.localhost i get 403 error.
what i am doing wrong.
please help
thanks
EDIT: solved
<Directory "c:/eclipsepdt/workspace/moodle">
Order Deny,Allow
Allow from all
</Directory>
i had double double quote in the path ""C:/eclipsepdt/" in Directory directive.
EDIT: FAIL
As described above i tried to create virtual host. i thought i succeeded in creating but today i realized that i have done something wrong.
i have xampp installation and have couple of projects sitting in htdocs folder.
then i installed eclipse pdt and checked out a project in eclipse workspace which i created in c:/eclipsepdt/ folder. after creating virtual host as mentioned above i was able to install moodle from my browser without any issue . today i tried to access my projects in htdocs folder but i was getting object not found error.
what is the right procedure to create virtual hosts.
my httpd-vhosts.conf has following lines
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:\eclipsepdt\workspace"
ServerName moodle.localalhost
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
</VirtualHost>
my requirement is that i should be able to access my projects in htdocs folder as well as in eclipse workspace. is it possible.
please help thanks