Jump to content


Photo

Backslash always required for URL file access?


  • Please log in to reply
2 replies to this topic

#1 kipbenson4

kipbenson4
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 August 2003 - 05:21 PM

I looked through the Apache forum before asking this, but I didn\'t find anything relevant. It\'s similar, but not quite the same as the DirectoryIndex directive problem, I think.

I have direcories in my htdocs, so I want to be able to access them in the following ways:

http://myserver/sandbox/ (1)
http://myserver/sandbox (2)

(1) works like a champ, going to whatever I\'ve specified in DirectoryIndex, but (2) gives a browser error--NOT from Apache.

What can I do to auto-insert the backslash so apache doesn\'t think it\'s trying to access a file?

Thanks!
Kip

#2 Quintin Riis

Quintin Riis
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 21 August 2003 - 01:17 AM

http://myserver/sandbox/ (1)
http://myserver/sandbox (2)


The first one is a <b>directory</b>. The second is a <b>FILE</b>

You need to have a FQDN with DNS for Apache to guess that /blah should redirect to /blah/. Do you have a domain name associated with your webserver?

#3 kipbenson4

kipbenson4
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 August 2003 - 12:39 PM

Sorry for not following up on this after I figured it out.

In the httpd.conf file:

UseCanonicalName Off

That seemed to do the trick!

Kip




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users