Operating Systems > Linux and UNIX
Strange Apache Problem
billy_gates:
I have a web site running off my Mac's apache:
http://www.skinner.com/jeffberg
Now I found a very strange bug.
If I type 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 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.
Master of Reality:
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?
Master of Reality:
and if you dont mind me asking... why do you have your itunes list there?
billy_gates:
quote:Originally posted by The Master of Reality / Bob:
and if you dont mind me asking... why do you have your itunes list there?
--- End quote ---
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/ will show the index of files
while http://jeffberg.homelinux.com:6969/files with no slash will go to 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/ will bring u to a little flash animation i made
while http://jeffberg.homelinux.com:6969/alpha will bring you to 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 ]
xyle_one:
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.
Navigation
[0] Message Index
[#] Next page
Go to full version