Making Local reference for Directories

2016-09-04 Thread Jayaram Ponnusamy
Dear All,

Our System Architecture is Apache WebServer-> Tomcat-> CMS System.
we stored all our files under /files in CMS and this folder is shared
FileSystem. So, WebServer also can access it.


Currently if any images has to load on the site then first Apache sending
request to Tomcat and Tomcat Communicate CMS to load the file from
specified folder. To avoiding delay, we want to load directly from
WebServer.

In Tomcat we added context for /files to point /opt/apps/shared/cms/files.
Similarly can create any context in WebServer to point some local directory?

For eg. if http://abc. com/files/xcxcxcxc/xcxcx/xcxcx then it has to be
load from WebServer's local directory (FileSystem). Kindly please let me on
this and sorry for my Bad English



-- 

*Thanks & Regards,*
*Jayaram Ponnusamy*


Re: Making Local reference for Directories

2016-09-04 Thread tomcat

On 04.09.2016 10:22, Jayaram Ponnusamy wrote:

Dear All,

Our System Architecture is Apache WebServer-> Tomcat-> CMS System.
we stored all our files under /files in CMS and this folder is shared
FileSystem. So, WebServer also can access it.


Currently if any images has to load on the site then first Apache sending
request to Tomcat and Tomcat Communicate CMS to load the file from
specified folder. To avoiding delay, we want to load directly from
WebServer.

In Tomcat we added context for /files to point /opt/apps/shared/cms/files.
Similarly can create any context in WebServer to point some local directory?

For eg. if http://abc. com/files/xcxcxcxc/xcxcx/xcxcx then it has to be
load from WebServer's local directory (FileSystem). Kindly please let me on
this and sorry for my Bad English



Hi.

I believe that this is more a question for the "Apache httpd" webserver support 
list, no ?
See here : http://httpd.apache.org/
and more specifically here : http://httpd.apache.org/lists.html#http-users

To give you a small pointer : what you want to do is probably a combination of :
http://httpd.apache.org/docs/2.4/mod/core.html#directory
and maybe
http://httpd.apache.org/docs/2.4/mod/core.html#location
and maybe
http://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias

and you will probably also need to change the configuration directives in the Apache httpd 
configuration, which currently forward the requests to Tomcat, so that /these/ requests 
are no longer forwarded to Tomcat.


But you are not providing enough information for us to help you there.
Specifically, /how/ are the requests currently passed from Apache httpd to 
Apache Tomcat ?
(There are several possible mechanisms, and you are not saying which one you 
are using).







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



probable bug

2016-09-04 Thread Cristian Lorenzetto
i m working on websocket with long messages.

I saw ... payload message length is wrong in the last frame.


Re: probable bug

2016-09-04 Thread Hassan Schroeder
On Sun, Sep 4, 2016 at 1:52 PM, Cristian Lorenzetto
 wrote:
> i m working on websocket with long messages.
>
> I saw ... payload message length is wrong in the last frame.

->  http://www.catb.org/esr/faqs/smart-questions.html

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: probable bug

2016-09-04 Thread Cristian Lorenzetto
 final boolean mlast = message.isLast();
final int mlen = message.getPayloadLength();

*mlen is different in the last frame of the same message*

2016-09-05 0:36 GMT+02:00 Hassan Schroeder :

> On Sun, Sep 4, 2016 at 1:52 PM, Cristian Lorenzetto
>  wrote:
> > i m working on websocket with long messages.
> >
> > I saw ... payload message length is wrong in the last frame.
>
> ->  http://www.catb.org/esr/faqs/smart-questions.html
>
> --
> Hassan Schroeder  hassan.schroe...@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
> Consulting Availability : Silicon Valley or remote
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: probable bug

2016-09-04 Thread Hassan Schroeder
On Sun, Sep 4, 2016 at 3:39 PM, Cristian Lorenzetto
 wrote:

useful:

   Tomcat version
   JVM version
   standalone reproducible test case

not useful:

>  final boolean mlast = message.isLast();
> final int mlen = message.getPayloadLength();
>
> *mlen is different in the last frame of the same message*

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org