I've install moodle on WAMP on a Windows xp, i setup virtual host using hosts, httpd.conf, httpd-vhosts.conf.
hosts looks like
127.0.0.1 localhost
192.168.1.3 moodle
httpd.conf looks like
Listen 80
ServerName localhost:80
DocumentRoot "E:/wamp/www/"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
httpd-vhosts.conf.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "E:/wamp/www/"
ServerName localhost
ServerAlias www.localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@moodle
DocumentRoot "E:/wamp/www/moodle/"
ServerName moodle
ServerAlias www.moodle
ErrorLog "logs/moodle-error.log"
CustomLog "logs/moodle-access.log" common
</VirtualHost>
on computer 2 , in hosts file
192.168.1.3
Now when i go to browse [
moodle] ,it shows thefirst page of website but when i go to login hyperlink
it redirect to [
localhost] (unable to connect).
instead of [
moodle]
plz help me