ColdFusion Local IP on Mac

snobrdrt
snobrdrt used Ask the Experts™
on
I am using a Mac with ColdFusion installed for my development environment. Currently, I have to go to http://localhost:8500/SiteName/ to test in my local environment. The problem I'm having is when I click on a link, like in my menu, ex: /contact/, it wants to go to http://localhost:8500/contact/ instead of http://localhost:8500/SiteName/contact/.

When I use a Windows machine, which is not an option here, I can just configure IIS and a local IP. With the Mac, there is no IIS. I can assign local IPs all day long but cannot associate the local IP to the SPECIFIC website I'm developing.

Any ideas?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Commented:
(not for points ...)

>> ex: /contact/,

Yes, that's what I would expect. It's an absolute path so it points to the "contact" folder beneath the webroot ie "/"

I'm not familiar with macs.  What web server are you using? If it's the built in web server, unfortunately it can only have one webroot.  You could make it point to "/SiteName". But that obviously wouldn't help if you had more than one site ...

Author

Commented:
Thanks. I figured it out. for whatever reason I was adding the slash in front of the folder name. It was /contact/ instead of contact/. Now it is working OK. Dumb mistakes. Even though you wrote not for points, you made me think straight so here you go!
Most Valuable Expert 2015

Commented:
Glad I could help (in a small way) to get things sorted out :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial