Author Topic: Strange Apache Problem  (Read 548 times)

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Strange Apache Problem
« on: 31 August 2003, 00:50 »
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

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Strange Apache Problem
« Reply #1 on: 31 August 2003, 03:02 »
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?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Strange Apache Problem
« Reply #2 on: 31 August 2003, 03:03 »
and if you dont mind me asking... why do you have your itunes list there?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Strange Apache Problem
« Reply #3 on: 31 August 2003, 04:45 »
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/ 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

  • VIP
  • Member
  • ***
  • Posts: 2,213
  • Kudos: 135
Strange Apache Problem
« Reply #4 on: 31 August 2003, 06:31 »
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.

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Strange Apache Problem
« Reply #5 on: 31 August 2003, 06:47 »
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

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Strange Apache Problem
« Reply #6 on: 31 August 2003, 21:07 »
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

*edit* mod_dir is already enabled in the config file... no luck with that one.

[ August 31, 2003: Message edited by: jeffberg: Mac Capitalist ]


billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Strange Apache Problem
« Reply #7 on: 1 September 2003, 06:19 »
hallo?
Ecsyle, did u find anything on it yet?

sure

  • Newbie
  • *
  • Posts: 2
  • Kudos: 0
Strange Apache Problem
« Reply #8 on: 1 September 2003, 21:33 »
check your apache config and see if "mod_dir" is configed.
it can redirect the www.yoursite.com/somedir to www.yoursite.com/somedir/

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Strange Apache Problem
« Reply #9 on: 1 September 2003, 10:07 »
quote:
Originally posted by sure:
check your apache config and see if "mod_dir" is configed.
it can redirect the www.yoursite.com/somedir to www.yoursite.com/somedir/



its enabled... how can I tell if it is configured?