If there are any Apache experts out there, I need some help.
I am using Apache to run a development environment on my computer. I have several sites that I am developing, each of which has their own folder in the htdocs root folder.
My question is, how do I get references to the site root to only go to the folder root, rather to htdocs.
That is, I have htdocs/foo. Inside foo, I have a folder images. When loading images on a page, I refer to src="/images/bar.gif". But of course, this bounces to htdocs to look for the images folder, which I don't want.
So either I need to set it so that it looks for the root within each specific site folder, or I need to somehow create an name-address or IP for each folder so I'm not accessing them as localhost/foo. I guess the latter would require configuring a DNS on my computer?
Any help? I am continually amazed by the knowledge of all Slowtwitchia...
"Non est ad astra mollis e terris via." - Seneca | rappstar.com | FB - Rappstar Racing | IG - @jordanrapp
I am using Apache to run a development environment on my computer. I have several sites that I am developing, each of which has their own folder in the htdocs root folder.
My question is, how do I get references to the site root to only go to the folder root, rather to htdocs.
That is, I have htdocs/foo. Inside foo, I have a folder images. When loading images on a page, I refer to src="/images/bar.gif". But of course, this bounces to htdocs to look for the images folder, which I don't want.
So either I need to set it so that it looks for the root within each specific site folder, or I need to somehow create an name-address or IP for each folder so I'm not accessing them as localhost/foo. I guess the latter would require configuring a DNS on my computer?
Any help? I am continually amazed by the knowledge of all Slowtwitchia...
"Non est ad astra mollis e terris via." - Seneca | rappstar.com | FB - Rappstar Racing | IG - @jordanrapp