Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: billy_gates on 31 August 2003, 00:50
-
I have a web site running off my Mac's apache:
http://www.skinner.com/jeffberg (http://www.skinner.com/jeffberg)
Now I found a very strange bug.
If I type http://www.skinner.com/jeffberg/itunes/ (http://www.skinner.com/jeffberg/itunes/) it will show me all of my music as it is supposed to, but if I type:
http://www.skinner.com/jeffberg/itunes (http://www.skinner.com/jeffberg/itunes) it forwards the address to 127.0.0.1/itunes. Now from my computer this is fine, but over the internet it gives an error, cus 127.0.0.1 is trying to connect to its own computer.
How do I make it so itunes or itunes/ will work?
P.S. It does this on all folders.
-
hmmmm... i have never had this problem... do you have a file named "itunes" in /jeffberg/ ?
do you have any other subdirs of jeffberg/ that do the same?
-
and if you dont mind me asking... why do you have your itunes list there?
-
quote:
Originally posted by The Master of Reality / Bob:
and if you dont mind me asking... why do you have your itunes list there?
it was a gpl'd php thing so I did it.(for fun) And yes all folders do this for example: (i'll use the real address now)
http://jeffberg.homelinux.com:6969/files/ (http://jeffberg.homelinux.com:6969/files/) will show the index of files
while http://jeffberg.homelinux.com:6969/files (http://jeffberg.homelinux.com:6969/files) with no slash will go to http://127.0.0.1/files/ (http://127.0.0.1/files)
no there is no file in itunes called itunes.
here is another good example:
http://jeffberg.homelinux.com:6969/alpha/ (http://jeffberg.homelinux.com:6969/alpha/) will bring u to a little flash animation i made
while http://jeffberg.homelinux.com:6969/alpha (http://jeffberg.homelinux.com:6969/alpha) will bring you to http://127.0.0.1/alpha/ (http://127.0.0.1/alpha)
The weird thing is is that I replaced my edited httpd.conf to see if it was something I did, with the original and it still did this.
So I am really confused
[ August 30, 2003: Message edited by: jeffberg: Mac Capitalist ]
-
I vagualey remember reading something about how apache handles folders & files, if there is no trailing slash, it thinks it is looking for a file. And in your case, apache tells the browser to look on your system for it. I think there is a way to fix that, but i am not that 'edumacated' in apache. I will try to find a fix though, since i have had that problem as well.
-
quote:
Originally posted by ecsyle:951:
I vagualey remember reading something about how apache handles folders & files, if there is no trailing slash, it thinks it is looking for a file. And in your case, apache tells the browser to look on your system for it. I think there is a way to fix that, but i am not that 'edumacated' in apache. I will try to find a fix though, since i have had that problem as well.
thx a bunch
-
I found this. Not sure if it is of any help. I couldn't decode it because it is for the windows apache. I will try enabling mod_dir though and see if that works
http://forums.devshed.com/t27420/s.html (http://forums.devshed.com/t27420/s.html)
*edit* mod_dir is already enabled in the config file... no luck with that one.
[ August 31, 2003: Message edited by: jeffberg: Mac Capitalist ]
-
hallo?
Ecsyle, did u find anything on it yet?
-
check your apache config and see if "mod_dir" is configed.
it can redirect the www.yoursite.com/somedir (http://www.yoursite.com/somedir) to www.yoursite.com/somedir/ (http://www.yoursite.com/somedir/)
-
quote:
Originally posted by sure:
check your apache config and see if "mod_dir" is configed.
it can redirect the www.yoursite.com/somedir (http://www.yoursite.com/somedir) to www.yoursite.com/somedir/ (http://www.yoursite.com/somedir/)
its enabled... how can I tell if it is configured?