New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - apache redirects to 127.0.0.1


Post Reply New Thread Subscribe

 
Thread Tools
pagod

 
Member Since: May 04, 2007
Posts: 3
pagod is on a distinguished road

pagod is offline
Hi all,

i'm having a problem with my web server, perhaps someone can help. i can remember having the same problem on an OS X 10.2, and somehow solving it, but i have no clue how i did that (it was more than 1 year ago...)

so basically here's the problem: i have my apache running on my mac at home. i use my DSL router to update my DNS entry, and that works fine. i can access pages, or ssh to my server, that's ok.
the problem arises when i try to access *directories* on the mac. in such cases, where apache would either try to display a dir index or search for index.html, it simply redirects the call to 127.0.0.1, and of course it doesn't work...

here are a few examples:
http://pagod.dyndns.org/ -> redirect to http://pagod.dyndns.org/index.html (fine)
http://pagod.dyndns.org/~pagod/ -> redirect to http://pagod.dyndns.org/~pagod/index.html (fine)
http://pagod.dyndns.org/~pagod (no slash at the end) -> redirect to http://127.0.0.1/~pagod/ NOT FINE!!!
http://pagod.dyndns.org/~pagod/test/ -> redirect to http://pagod.dyndns.org/test/index.html (seems to be fine)
http://pagod.dyndns.org/~pagod/test (no slash at the end!) -> redirect to http://127.0.0.1/~pagod/test/ NOT FINE!!!
http://pagod.dyndns.org/~pagod/test/index.html -> displays index.html (fine)

when i try to get the last-but-one with wget, i get the following message:
-------------------
pingoo temp/test> wget "http://pagod.dyndns.org/~pagod/test"
--10:18:41-- http://84.153.124.233/~pagod/test
=> `test'
Connecting to 84.153.124.233:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://127.0.0.1/~pagod/test/ [following]
--10:18:41-- http://127.0.0.1/~pagod/test/
=> `index.html'
Connecting to 127.0.0.1:80... failed: Connection refused.
pingo temp/test>
-------------------

using the IP instead of the server name doesn't make things better, i.e. accessing http://84.153.124.233/~pagod/test (my current IP) doesn't work, but accessing http://84.153.124.233/~pagod/test/ (with slash at the end) does work.

finally, once an index has been successfully loaded (e.g. by adding the slash at the end of the address), further attempts to load it (without slash) will work as well in the same session (e.g. browser window). might have been cached on the server side?..

anyone already experienced this problem, and/or knows how to solve it? i guess it's a config problem, but i'm rather new to apache and i don't feel too comfortable playing around with httpd.conf yet...

thx a lot in advance!!

Pagod
QUOTE Thanks

Post Reply New Thread Subscribe


« Ecommerce Software | Password reset »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Apache issue.. benbramz OS X - Operating System 5 12-01-2006 11:33 PM
Stupid Apache alexisonfire Schweb's Lounge 10 08-16-2006 02:24 AM
Apache and Airport Express jwindhall OS X - Operating System 1 10-06-2005 07:23 AM
Dual Apache install, how do I remove!? edokid OS X - Operating System 1 02-11-2005 04:35 AM
Apache does not start plutonito OS X - Development and Darwin 3 07-28-2004 01:19 PM

All times are GMT -4. The time now is 07:45 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?