I have an apache install on my local machine and my project is located at:
http://localhost/my/dir/
and I would like to access it by typing:
http://projectname/
How is this achieved in apache?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you’ll need to create a virtualhost. Take a look at this:
http://httpd.apache.org/docs/2.0/vhosts/examples.html
Secondly, you will need to add an entry into your hosts file to point projectname to localhost.