Hi all,
i'm having a problem with my apache web server running on MacOS X 10.4.9, 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 using the server name, that's ok.
the problem arises when i try to remotely 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:
-> redirect to (fine)
-> redirect to (fine)
(no slash at the end) -> redirect to NOT FINE!!!
-> redirect to (seems to be fine)
(no slash at the end!) -> redirect to NOT FINE!!!
-> displays index.html (fine)
when i try to get the last-but-one with wget, i get the following message:
-------------------
pingoo temp/test> wget "--10:18:41-- => `test'
Connecting to 84.153.124.233:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: [following]
--10:18:41-- => `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 (my current IP) doesn't work, but accessing (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
i'm having a problem with my apache web server running on MacOS X 10.4.9, 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 using the server name, that's ok.
the problem arises when i try to remotely 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:
-> redirect to (fine)
-> redirect to (fine)
(no slash at the end) -> redirect to NOT FINE!!!
-> redirect to (seems to be fine)
(no slash at the end!) -> redirect to NOT FINE!!!
-> displays index.html (fine)
when i try to get the last-but-one with wget, i get the following message:
-------------------
pingoo temp/test> wget "--10:18:41-- => `test'
Connecting to 84.153.124.233:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: [following]
--10:18:41-- => `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 (my current IP) doesn't work, but accessing (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