I am setting up a LAMP development environment on my ubuntu 8.04 desktop. I have a virtual host (dev.local) that is located at /home/USER/www
I am wondering how I can make it so all sub directories are subdomains of dev.local (ie: /home/USER/www/project1 would become a document root at project1.dev.local)
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
You can set up vhosts for each subdomain in the Apache configuration (e.g. a vhost for project1.dev.local with the document root /home/USER/www/project1 and so on).
Recent comments
1 day 8 hours ago
1 day 10 hours ago
1 day 22 hours ago
2 days 1 hour ago
2 days 5 hours ago
2 days 11 hours ago
2 days 21 hours ago
2 days 22 hours ago
3 days 6 hours ago
3 days 8 hours ago