I have two folder in my localhost var/www/project1 and var/www/project2
When I access one project url I want to get that site only how can I achieve that?
ex:
`project1.example.com` should go to the `project1/index.php`
`project2.example.com` should go to the `project2/index.php`
How can I achieve this? Is there any thing to change in apache or httpd.conf ?
Is there any redirection rules in apache or .htaccess
Try:
This would map
project1.example.com/index.phpto directory/var/www/project1/index.phpproject2.example.com/index.phpto directory/var/www/project2/index.phpproject3.example.com/some/path/file.phpto directory/var/www/project3/some/path/file.php....