[NTLUG:Discuss] Trailing backslashes

Vaidya, Harshal (Cognizant) HarshalV at pun.COGNIZANT.COM
Sun Aug 31 23:22:33 CDT 2003


Hi,

 I do not know much of Apache server, but if the application you are
working with is a J2EE based Application take a close look at your
context root. The context root is specified in the application.xml file.
The context root might be "support/" (Along with the slash). Just remove
that slash and restart the server. Your problem should be gone.

However, if this is not a J2EE App this mail might not be much of help
at all. I just wanted to mention it here because I had faced this
problem sometime back.


Regards,
Harshal.

-----Original Message-----
From: Jack Snodgrass [mailto:jack+ntlug at mylinuxguy.net] 
Sent: Friday, August 29, 2003 6:57 PM
To: NTLUG Discussion List
Subject: Re: [NTLUG:Discuss] Trailing backslashes


On Fri, 2003-08-29 at 07:46, Richard Humphrey wrote:
> I have a web site that we have created for some of our distributors. 
> For some reason if I put in http://www.mydomain.com/support it will 
> not take me there. If I type in http://www.mydomain.com/support/ (note

> trailing
> backslash) it works fine. Is this configurable or does something else
> need to be in place so that http://www.mydomain.com/support will work
> correctly?
> 
> 
>  Richard Humphrey

the http spec says something like... if it ends in a '/' it's a 
directory... otherwise it's a file. 

So... http://www.mydomain.com/support says to load the file support from
http://www.mydomain.com. That's not what you want. You want to 
load the index.html ( or whatever ) from the support directory. 

Apache ( and other servers ) will redirect a request for a file with 
no extension to a similar url with the '/' appended. It will then load
the appropriate index.html page. 

jack 


_______________________________________________
https://ntlug.org/mailman/listinfo/discuss
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
Url: http://ntlug.org/pipermail/discuss/attachments/20030901/05a39025/InterScan_Disclaimer.txt


More information about the Discuss mailing list