Forum archive
Installed LAMP stack need some help with config
So i had a spare laptop that i installed LAMP stack and its working greate i can access it through the static IP port i set (192.168.0.10).
Apache Questions:
I shared a folder called on my network drive.
I logged with PuTTY and created a folder /mnt/web i mounted the network drive in step 1.( I can see the contents of the folder in mnt/web)
In apache Webserver the virtual server is setup like this in the image.
In windows directory Windows\system32\etc\drivers\host file i set 192.168.0.10 as devsrv.ca

What i want it to do:
so if i have a folder in /mnt/web/test and test includes index.php and other parts of the webpage i want to be able to type in test.devsrv.ca OR devsrv.ca/test and would bring up the webpage in that folder.
At the moment i get the error:

Thanks for your help!!!
Hi,
I think you need to edit the /etc/hosts file of your webserver too and assign the server name to the ip address.
http://linuxservertutorials.blogspot.de/2008/11/ubuntu-hosts-file.html
If you want to use different names I think you have to configure virtual hosts in apache:
Apache Virtual Hosts:
http://httpd.apache.org/docs/2.2/vhosts/examples.html