|
Hi,
I am trying to set up apache properly on my computer. I am a web developer and want to use it for testing purposes. The problem that I am having is that I have more than one website. The way I have it set up is that each website is in it's own folder in the apache web directory. When I want to go to the website I would put in, for instance, localhost:8080/mywebsite. The problem that I am having is that all relative links in the website don't map to the 'mywebsite' directory. For instance links that go to pages/index.php go to localhost:8080/pages/index.php when they should go to localhost:8080/mywebsite/pages/index.php... I am fairly new to apache and am not sure how to solve this but I thought that maybe virtual hosts would work; however, I didn't really know how to set that up properly. Ideally I would like to go to mywebsite.localhost:8080. I do not know how to set up DNS but I am on a windows platform and do know how to edit this hosts file.
Thank you for your help,
Ryan
Dillema with Apache?
try typing in http://localhost/yourwebsitedirectory
Note: yourwebsitedirectory should be the name of the directory you created for the website
|