Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache 1.3 in browser (sometimes comes up as ".local" )

Status
Not open for further replies.

djbeta

IS-IT--Management
Apr 16, 2004
46
US
I have a web site running on a Mac 10.3 machine using OS X web sharing.
(Apache 1.3)

the url looks like this:
(index.html sits in this folder)

(I'm behind a firewall so thought I'd spare you the actual url)

My problem is that if someone types in the path to the web site,
and forgets to leave off the trailing slash,
they don't end up at the site.

example: if they type:


the browser will try to send them here:


and nothing will come up and they'll get this error:

Safari can’t open the page “ because it can’t find the server “computername.local”.

----

Is there a way I can configure the site so that if someone types in

the browser will point them here:
????

thanks !!!
 
Similar to this: Apache 1.3 on Win2k Pro
in httpd.conf i have an alias called "site" which sits beyond the web root:
##
Alias /site/ "C:/site/"
##
so, " would display its contents, but when " is called it would say "page cannot be displayed".

What i did is i created an empty folder called "site" in my web root, and ... it works! it redirects to the same url with the trailing slash i need.
i can't give you an explanation on this, but here is a piece of the access.log:
########
172.16.104.37 - - [20/Dec/2004:10:07:03 +0200] "GET /site HTTP/1.1" 301 339 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02"
172.16.104.37 - - [20/Dec/2004:10:07:03 +0200] "GET /site/ HTTP/1.1" 200 13919 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top