External Access - resolves as localhost?

ddick

Registered
newbie mac/OSX guy here so bear with me :

trying to set up a Wiki on my mac to be accessed externally. everything works ok locally.

1: shared apache web server

2: got my external IP address via "whatismyip.com"

3: can access the home page of my webserver externally.
i.e. can type http://x.x.x.x/ and it shows default apache home page.

4: when i try to go to the wiki page (http://x.x.x.x/wiki), it craps out and says it can't resolve "http://localhost.local/wiki. the browser address bar actually replaces my ip address (x.x.x.x) with (localhost.local) which is weird.


question : i believe one of the system preferences lets you name the machine for local networks and it is set to "localhost.local" (i think by default). how is this getting in them mix during resolution?

- is this setting the problem? should it be blank or is there some "don't use" checkbox?
- is the problem with the PHP based Wiki; i can't see why it would be hard coded to use localhost? that's not a mac os X problem though.
- is the webserver configured incorrectly? maybe certain subdirectories have different lookup properties? i dunno....i'm guessing at this point.


thanks,
any help appreciated.
 
mine always defaults back to my localhost when i am on my home machine. however, you may have to add your ~username after it or make sure your wiki stuff is running off computer's site vs. your users. where do you have wiki installed?

http://localhost.local/~ddick/wiki

i am kind of guessing as well. you can change your localhost name in the sharing system prefs
 
Actually, I have this problem on the beige box anytime I try to connect to a username based address via the public IP. Never really worried about it, as I was just screwing around.

I would venture to say you need to add your IP to the config file to fix it.
 
Back
Top