tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Peter
Hi all, I have many entries in /etc/hosts file, like this

cat /etc/hosts
127.0.0.1 main.host.com localhost
::1localhost6.localdomain6 localhost6
a.b.c.d client1.host.com hostname
a.b.c.d client1.host.com hostname

in webapp directory, webapp folders

client1
client2

my tomcat uses port 80, so by default when I enter any of above hostname on
browser I could see default index page, but my interest is like below

if I enter *http://client1.host.com http://client1.host.com* on browser,
then tomcat should forward it to webapp client1

*http://client1.host.com/client1 http://client1.host.com/client1*
same way if I enter *http://client2.host.com http://client2.host.com *it
should forward to to


*http://client2.host.com/client2 http://client2.host.com/client2*
How this can be achieved



*I am not interested to use virtual host in tomcat, as well as http apache*
whether its possible ???


Please help me..if possible send me sample configuration file as I am
newbie to web programming world.


Thanks in advance

- Peter


Re: Start the Tomcat server in the server view and go to http://localhost:8080/

2013-12-28 Thread Konstantin Kolinko
2013/12/28 Frank Lugalla frank.luga...@amdocs.com:
 Hi  Chuck,
Thank you  for having  a chance to  respond backregarding the version 
 ,I am using  Tomcat 7 integrated  with   Eclipse  Kepler  Release 1  with 
 JVM=1.7_u45.All run on  window platform.What   I want  is to start my  Tomcat 
  server in server view(this is the mode in eclipse).Hope  this  explain 
 somehow

 -Original Message-
 From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
 Sent: Friday, December 27, 2013 4:05 PM
 To: Tomcat Users List
 Subject: RE: Start the Tomcat server in the server view and go to 
 http://localhost:8080/

 From: Frank Lugalla [mailto:frank.luga...@amdocs.com]
 Subject: Start the Tomcat server in the server view and go to
 http://localhost:8080/

 (Please ignore Martin G's gibberish; it is, as usual, totally irrelevant.)

 Can someone please  tell me how to  Start the Tomcat server in the
 server view and go to  http://localhost:8080/?

 First off, you have to tell us what you're referring to as the server view. 
  If this is some mode of an IDE, you need to tell people exactly what IDE, 
 and how you have integrated Tomcat with it.  (And the answer to your question 
 in such case may more likely be obtained from the support mechanism for the 
 IDE.)

 Also, provide some real information, such as the Tomcat version, the platform 
 you're running on, the JVM version, etc.



1. Read the rules.
http://tomcat.apache.org/lists.html#tomcat-users
- point 6.

2. Your original quote Start the Tomcat server in the server view,
where did it come from?

view is a panel, an area in Eclipse IDE GUI.
The Server view is a panel that contains a list of servers (Tomcat
instances) that you have configured. Have you configured one?

You should click on the server instance (a row in the view) and press
that green arrow button in that little toolbar of the view (as opposed
to the main toolbar of the ide). Or you can use the context menu
(available if you right-click on the server instance).

 go to  http://localhost:8080/

Launch a web browser and enter http://localhost:8080/; into the address bar.

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



RE: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Caldarale, Charles R
 From: Peter [mailto:nex@gmail.com] 
 Subject: tomcat - How to forward request to some webapp while using port 80 
 without virtual host, without apache

 if I enter *http://client1.host.com http://client1.host.com* on browser,
 then tomcat should forward it to webapp client1

 *http://client1.host.com/client1 http://client1.host.com/client1*
 same way if I enter *http://client2.host.com http://client2.host.com *it
 should forward to to

 *http://client2.host.com/client2 http://client2.host.com/client2*

 *I am not interested to use virtual host in tomcat, as well as http apache*
 whether its possible ???

Many people use a filter to accomplish this; http://tuckey.org/urlrewrite/ is 
the most popular.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Peter
On Sat, Dec 28, 2013 at 6:48 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:
 From: Peter [mailto:nex@gmail.com]
 Subject: tomcat - How to forward request to some webapp while using port
80 without virtual host, without apache

 if I enter *http://client1.host.com http://client1.host.com* on browser,
 then tomcat should forward it to webapp client1

 *http://client1.host.com/client1 http://client1.host.com/client1*
 same way if I enter *http://client2.host.com http://client2.host.com *it
 should forward to to

 *http://client2.host.com/client2 http://client2.host.com/client2*

 *I am not interested to use virtual host in tomcat, as well as http
apache*
 whether its possible ???

Many people use a filter to accomplish this;
http://tuckey.org/urlrewrite/is the most popular.

 - Chuck

I am confused about installation part please help me, installation guide
says its WEB-INF directory which WEB-INF ?? and I didn't find any lib
directory look at the following detail, I am newbie I have lot of need of
you people's help please do the needful.


[root@peter webapps]#pwd
/usr/local/www/html/TOMCAT_DEMO/tomcat/*webapps*

[root@peter host-manager]# ls -1
docs
examples
host-manager
manager
ROOT


[root@peter host-manager]# pwd
/usr/local/www/html/TOMCAT_DEMO/tomcat/*webapps/host-manager*

[root@peter host-manager]# ls -1
images
index.jsp
manager.xml
META-INF
*WEB-INF*

[root@peter manager]#  pwd
/usr/local/www/html/TOMCAT_DEMO/tomcat/*webapps/manager*
[root@peter host-manager]#  ls -1
images
index.jsp
META-INF
status.xsd
*WEB-INF*
xform.xsl


[root@peter ROOT]# pwd
/usr/local/www/html/TOMCAT_DEMO/tomcat/*webapps/ROOT*
[root@peter host-manager]# ls -1
asf-logo.png
asf-logo-wide.gif
bg-button.png
bg-middle.png
bg-nav-item.png
bg-nav.png
bg-upper.png
build.xml
favicon.ico
index.jsp
RELEASE-NOTES.txt
tomcat.css
tomcat.gif
tomcat.png
tomcat-power.gif
tomcat.svg
*WEB-INF*



- Peter


On Sat, Dec 28, 2013 at 6:48 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Peter [mailto:nex@gmail.com]
  Subject: tomcat - How to forward request to some webapp while using port
 80 without virtual host, without apache

  if I enter *http://client1.host.com http://client1.host.com* on
 browser,
  then tomcat should forward it to webapp client1

  *http://client1.host.com/client1 http://client1.host.com/client1*
  same way if I enter *http://client2.host.com http://client2.host.com
 *it
  should forward to to

  *http://client2.host.com/client2 http://client2.host.com/client2*

  *I am not interested to use virtual host in tomcat, as well as http
 apache*
  whether its possible ???

 Many people use a filter to accomplish this; http://tuckey.org/urlrewrite/is 
 the most popular.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail and
 its attachments from all computers.


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




Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread André Warnier

Peter wrote:

Hi all, I have many entries in /etc/hosts file, like this

cat /etc/hosts
127.0.0.1 main.host.com localhost
::1localhost6.localdomain6 localhost6
a.b.c.d client1.host.com hostname
a.b.c.d client1.host.com hostname

in webapp directory, webapp folders

client1
client2

my tomcat uses port 80, so by default when I enter any of above hostname on
browser I could see default index page, but my interest is like below

if I enter *http://client1.host.com http://client1.host.com* on browser,
then tomcat should forward it to webapp client1

*http://client1.host.com/client1 http://client1.host.com/client1*
same way if I enter *http://client2.host.com http://client2.host.com *it
should forward to to


*http://client2.host.com/client2 http://client2.host.com/client2*
How this can be achieved



*I am not interested to use virtual host in tomcat,


The question here would be : why not ?
Because that is the usual (and most natural) way of doing the kind of thing 
that you want.

Other than virtual hosts, you can do as Chuck suggests, and use a servlet filter in the 
ROOT webapp to re-direct, but it is almost guaranteed to give you headaches later on, when 
your pages will contain self-referencing URLs and the like.
Or else, it will be very inefficient, because you will have 2 round-trips to the browser 
for each access.



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



Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread André Warnier

Peter wrote:
...



I am confused about installation part please help me, installation guide
says its WEB-INF directory which WEB-INF ?? and I didn't find any lib
directory look at the following detail, I am newbie I have lot of need of
you people's help please do the needful.



Maybe you could start here :

http://tomcat.apache.org/tomcat-7.0-doc/index.html
1, 2, 3 etc..

This is not a joke.  If really you do not know what WEB-INF stands for, and you really 
want to achieve what is in the subject of this thread, you do need to read on some basics.


On this list, we do what we can to help people with Tomcat problems or 
questions.
But this does not really replace some basic knowledge about Servlet Engines in general, 
and Tomcat in particular.


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



Compressed SVG support (*.svgz) in Tomcat

2013-12-28 Thread David Law

Hi,

Tomcat doesn't seem to serve compressed SVG's (*.svgz) correctly.
The response should have a Content-Encoding header, value 'gzip'.

Any chance of getting this at long last?
(a change to org.apache.catalina.servlets.DefaultServlet, I presume)

Version: 7.0.47

All the best,
DaveLaw

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



Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

David,

On 12/28/13, 12:06 PM, David Law wrote:
 Tomcat doesn't seem to serve compressed SVG's (*.svgz) correctly. 
 The response should have a Content-Encoding header, value 'gzip'.
 
 Any chance of getting this at long last? (a change to
 org.apache.catalina.servlets.DefaultServlet, I presume)
 
 Version: 7.0.47

What type of data do you have on the disk? What content-type? What
content-type and content-encoding are sent to the browser?

Tomcat's DefaultServlet should serve any file using gzip (with an
appropriate content-encoding) that matches the configured mime types
and isn't smaller than a certain size. All of these can be configured
with the compression, compressableMimeType, and compressionMinSize
attributes on your Connector. Note that use of sendFile precludes
the use of gzip compression, so if you are using sendFile you aren't
going to get that kind of encoding.

- From a stock Tomcat install, to get .svg files served using
content-encoding:gzip, you'd need to modify your Connector to have
the following attributes:

   compression=on
   compressableMimeType=, image/svg+xml
   compressionMinSize=[big enough to exceed your file size
   sendFile=false (if appropriate)

If the file is already compressed, then Tomcat will not re-compress
it, and won't use the content-encoding:gzip header because it's not
appropriate: the server is serving compressed content, not merely
compressing the content for transfer.

If you want to serve pre-compressed content then you'll have to do
some work yourself (unless you are using Tomcat 8). There have been a
few discussions on the various lists over the past few years. For example,

http://markmail.org/message/w2kpjqibrkxmxmup
http://markmail.org/thread/h5kyjofpkglpkfks

Tomcat 8.0.4-RC4+ should already support pre-compressed files:
https://issues.apache.org/bugzilla/show_bug.cgi?id=54095

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSvxmeAAoJEBzwKT+lPKRYHGoP/2AOOw9SDDdrh7SKEfQcjPF5
PYS+dzttdVA+0Gn5Kgm/i7VVzsqAiZ+OHFmN/pMqkDAyqFOKwDADzQ+hS2akp1yw
bbL6lFVkWX1TwiDBRh23JIV5ljCZRioVBDJtj+novk0ITBHAC73RdA4uJ1MpLsVX
wtXHBPamRjc2m5H1r5UBI/ZqUgM3Oa6WB8MUTgXddcZZJkaTkHUHzvmSJmkfe/zy
kgzGy1vFUw7jeEejEMLMcT6MZ3/Y1+T2IMOu6P90KojJa9jxSynb1gEEgT5t5aRX
e/i5VJlCunIHS8YX3B/LOhdSK0dfOgV4mjVl+v/YpWBi3YALpuNiBMX4PygUDaxW
uRO21Sz+3KP9oNvSuTmc+dZj3wShiVN2Cjve2pqHmI/7O6PWZmfwODDgoS7TpaFV
Cfmkpp6fhCRCjr4ckV5/v1RELQF4xIL8NnMbRIfvlwsBbIGP4XMf7OQsyjpXsYKQ
gHrkJv/U2yePrzExLcPVoHEoxFWQ9I0VMHpJSLdX+PZQQx38wx7aNg/P7X6Sq7oe
nRO0x/L7nKGarjB3ldXoPMoKEywym0X9lr0vDbPs7tT67igNXrcfKrMH+arMfabm
SukIDDGkq6fjOtfLAq9VHGvvk6i3VBjY3m+WExQ/TvTrHWfKoep2em+ExtUxSRMn
v6WvKDaLa9w5n+NjCNXU
=9hiN
-END PGP SIGNATURE-

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



Re: apache tomcat serialization

2013-12-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ray,

On 12/26/13, 12:14 PM, Ray Holme wrote:
 It appears new revisions of tomcat (current for sure) are much
 more sensitive to keeping serialized data BETWEEN restarts. I have
 to wait at least 30 minutes to properly restart my applications.

30 minutes to shut-down or 30 minutes to start-up?

Have you tried to take a few thread dumps to find out what's going on?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSvxpSAAoJEBzwKT+lPKRY+5EP/3Bu4j80UJEqbfcew8c/WmD2
fITFoCq8fXfMVWZt8NmAXxAOJBnQ8Ddc64K4jLOXo3vkxL55OPay5FUiFT6OjPuZ
0AIFndQ62n7g6CjGXQwGAzGvwDIYt1c6xb1/xj3kEsp9/pbrKqE4SkX9y1aHIiOs
XNt8cD7f6332H0si2BHv9nhylC0o5y0J7fND2ZJbHAwaDZgMHf3QGcvrnJzLoFqO
sXvQ0gJEIstrlLWZkcufCjTKB9/5C8A3pbc9Kf5a+MFrY6cFszE6YBJq15RCc0X4
2gqJ8BBYHv8j60DGMmSvshA46TkjYDRD73UEgrx7dqEeLkXHC3iYeJTuA4cPL9Dw
NH0DxS1j1sLPq8hEPSDpC5w40Dl7jJBkRrXiLNIEiRKGEEr76VVwXohwgC4rRVGQ
/aMhUzqqaqpHtZdldjYWI3FHmkFH2ijMCIhjVk2TTJCJlsz9iur842wZwz/AY70U
YxaYxZuYDohmdLuGec5SffeS9L4XdeSUs3kEHI4xBL2PTxM5hVhwYDWIiaihdN1k
9ytMGfpnTWwDrLq1GYPeveD4HP1GnAqxG1Eq/5L6A7A9Ci4WVSmjk4/2Np5Kh9R6
bz808da8ur0Uc2sUoNPODPhmi6hg3GAGnQ0SnLfXDZAlZlD++PCx2+II3YVrhqHW
kMfOGBqksIVz1dgFh3p5
=t5Af
-END PGP SIGNATURE-

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



Fw: apache tomcat serialization

2013-12-28 Thread Ray Holme
Yes I have done various things to trace. The problem is DB connections. I 
believe that the serialized versions of things went nuts trying to refresh. 
Once serialization is off, the problem is gone.

Each of the four applications initializes using one connection. But re-loading 
through serialization appears to do weir things.

So far things work great with it stopped.

   Manager pathname= /

Has calmed the waters.

Thanks to Mark for once again steering me in the right direction.




On Saturday, December 28, 2013 1:37 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ray,


On 12/26/13, 12:14 PM, Ray Holme wrote:
 It appears new revisions of tomcat (current for sure) are much
 more sensitive to keeping serialized data BETWEEN restarts. I have
 to wait at least 30 minutes to properly restart my applications.

30 minutes to shut-down or 30 minutes to start-up?

Have you tried to take a few thread dumps to find out what's going on?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSvxpSAAoJEBzwKT+lPKRY+5EP/3Bu4j80UJEqbfcew8c/WmD2
fITFoCq8fXfMVWZt8NmAXxAOJBnQ8Ddc64K4jLOXo3vkxL55OPay5FUiFT6OjPuZ
0AIFndQ62n7g6CjGXQwGAzGvwDIYt1c6xb1/xj3kEsp9/pbrKqE4SkX9y1aHIiOs
XNt8cD7f6332H0si2BHv9nhylC0o5y0J7fND2ZJbHAwaDZgMHf3QGcvrnJzLoFqO
sXvQ0gJEIstrlLWZkcufCjTKB9/5C8A3pbc9Kf5a+MFrY6cFszE6YBJq15RCc0X4
2gqJ8BBYHv8j60DGMmSvshA46TkjYDRD73UEgrx7dqEeLkXHC3iYeJTuA4cPL9Dw
NH0DxS1j1sLPq8hEPSDpC5w40Dl7jJBkRrXiLNIEiRKGEEr76VVwXohwgC4rRVGQ
/aMhUzqqaqpHtZdldjYWI3FHmkFH2ijMCIhjVk2TTJCJlsz9iur842wZwz/AY70U
YxaYxZuYDohmdLuGec5SffeS9L4XdeSUs3kEHI4xBL2PTxM5hVhwYDWIiaihdN1k
9ytMGfpnTWwDrLq1GYPeveD4HP1GnAqxG1Eq/5L6A7A9Ci4WVSmjk4/2Np5Kh9R6
bz808da8ur0Uc2sUoNPODPhmi6hg3GAGnQ0SnLfXDZAlZlD++PCx2+II3YVrhqHW
kMfOGBqksIVz1dgFh3p5
=t5Af
-END PGP SIGNATURE-

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

Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-28 Thread David Law

Hi Chris,

On 28/12/2013 19:34, Christopher Schultz wrote:


What type of data do you have on the disk?

Its all standard stuff.  As specified by W3C, compressed SVG's
are just SVG's (which are just XML) compressed with gzip, with
a Mime-Type of image/svg+xml, and extension .svgz

What content-type?

image/svg+xml

  What content-type and content-encoding are sent to the browser?

Content-Type: image/svg+xml
Content-Encoding: not present

No Content-Encoding header is sent in the response.
And that is exactly the problem:
DefaultServlet needs to be changed to serve up svgz's with 
Content-Encoding gzip



Tomcat's DefaultServlet should serve any file using gzip (with an
appropriate content-encoding) that matches the configured mime types
and isn't smaller than a certain size. All of these can be configured
with the compression, compressableMimeType, and compressionMinSize
attributes on your Connector.

I'm just using the xhtml img src=/images/image.svgz/ tag in a Facelet

Note that use of sendFile precludes
the use of gzip compression, so if you are using sendFile you aren't
going to get that kind of encoding.

I am not using sendFile.

- From a stock Tomcat install, to get .svg files served using
content-encoding:gzip, you'd need to modify your Connector to have
the following attributes:

compression=on
compressableMimeType=, image/svg+xml
compressionMinSize=[big enough to exceed your file size
sendFile=false (if appropriate)

If the file is already compressed, then Tomcat will not re-compress
it, and won't use the content-encoding:gzip header because it's not
appropriate: the server is serving compressed content, not merely
compressing the content for transfer.

If you want to serve pre-compressed content then you'll have to do
some work yourself (unless you are using Tomcat 8). There have been a
few discussions on the various lists over the past few years. For example,

http://markmail.org/message/w2kpjqibrkxmxmup
http://markmail.org/thread/h5kyjofpkglpkfks

Tomcat 8.0.4-RC4+ should already support pre-compressed files:
https://issues.apache.org/bugzilla/show_bug.cgi?id=54095
I am aware of the changes made by Philippe Marschall (r1531115)  Mark 
Thomas regarding gzip.

This is quite useful but does not address my Issue.
It could be used (as a workaround) if compressed SVG's had the extension 
.svg.gz

But they don't: W3C specifies the extension as .svgz
We just need Tomcat to serve up svgz's with Content-Encoding gzip.
Something like this:
if (contentType.equals(image/svg+xml)
  path.toLowerCase().endsWith(.svgz)) {
response.addHeader(Content-Encoding, gzip);
}

All the best,
DaveLaw


- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSvxmeAAoJEBzwKT+lPKRYHGoP/2AOOw9SDDdrh7SKEfQcjPF5
PYS+dzttdVA+0Gn5Kgm/i7VVzsqAiZ+OHFmN/pMqkDAyqFOKwDADzQ+hS2akp1yw
bbL6lFVkWX1TwiDBRh23JIV5ljCZRioVBDJtj+novk0ITBHAC73RdA4uJ1MpLsVX
wtXHBPamRjc2m5H1r5UBI/ZqUgM3Oa6WB8MUTgXddcZZJkaTkHUHzvmSJmkfe/zy
kgzGy1vFUw7jeEejEMLMcT6MZ3/Y1+T2IMOu6P90KojJa9jxSynb1gEEgT5t5aRX
e/i5VJlCunIHS8YX3B/LOhdSK0dfOgV4mjVl+v/YpWBi3YALpuNiBMX4PygUDaxW
uRO21Sz+3KP9oNvSuTmc+dZj3wShiVN2Cjve2pqHmI/7O6PWZmfwODDgoS7TpaFV
Cfmkpp6fhCRCjr4ckV5/v1RELQF4xIL8NnMbRIfvlwsBbIGP4XMf7OQsyjpXsYKQ
gHrkJv/U2yePrzExLcPVoHEoxFWQ9I0VMHpJSLdX+PZQQx38wx7aNg/P7X6Sq7oe
nRO0x/L7nKGarjB3ldXoPMoKEywym0X9lr0vDbPs7tT67igNXrcfKrMH+arMfabm
SukIDDGkq6fjOtfLAq9VHGvvk6i3VBjY3m+WExQ/TvTrHWfKoep2em+ExtUxSRMn
v6WvKDaLa9w5n+NjCNXU
=9hiN
-END PGP SIGNATURE-

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





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



Re: Compressed SVG support (*.svgz) in Tomcat

2013-12-28 Thread David Law

I just tried this in DefaultServlet:

if (contentType.equals(image/svg+xml)
  path.toLowerCase().endsWith(.svgz)) {
response.addHeader(Content-Encoding, gzip);
}

Quick  dirty, but Works fine as proof-of-concept.
We just need a DefaultServlet expert to do the slow  clean stuff.

I believe a generic solution to be best though, long-term. Something like:

mime-mapping
extensionsvgz/extension
mime-typeimage/svg+xml/mime-type
encodinggzip/encoding
/mime-mapping

...with a new Tag, for example: encoding

All the best,
DaveLaw


On 28/12/2013 18:06, David Law wrote:

Hi,

Tomcat doesn't seem to serve compressed SVG's (*.svgz) correctly.
The response should have a Content-Encoding header, value 'gzip'.

Any chance of getting this at long last?
(a change to org.apache.catalina.servlets.DefaultServlet, I presume)

Version: 7.0.47

All the best,
DaveLaw

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





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



Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Peter
I am happy that you guys sent reply to me, but anyone here can create
configuration file for me for example which I had mentioned in beginning of
post, then I can understand better, its my weakness but true.

-Peter

On Sat, Dec 28, 2013 at 10:25 PM, André Warnier a...@ice-sa.com wrote:

 Peter wrote:
 ...



 I am confused about installation part please help me, installation guide
 says its WEB-INF directory which WEB-INF ?? and I didn't find any lib
 directory look at the following detail, I am newbie I have lot of need of
 you people's help please do the needful.


 Maybe you could start here :

 http://tomcat.apache.org/tomcat-7.0-doc/index.html
 1, 2, 3 etc..

 This is not a joke.  If really you do not know what WEB-INF stands for,
 and you really want to achieve what is in the subject of this thread, you
 do need to read on some basics.

 On this list, we do what we can to help people with Tomcat problems or
 questions.
 But this does not really replace some basic knowledge about Servlet
 Engines in general, and Tomcat in particular.


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




Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Mark Eggers

On 12/28/2013 11:00 PM, Peter wrote:

I am happy that you guys sent reply to me, but anyone here can create
configuration file for me for example which I had mentioned in beginning of
post, then I can understand better, its my weakness but true.

-Peter

On Sat, Dec 28, 2013 at 10:25 PM, André Warnier a...@ice-sa.com wrote:


Peter wrote:
...




I am confused about installation part please help me, installation guide
says its WEB-INF directory which WEB-INF ?? and I didn't find any lib
directory look at the following detail, I am newbie I have lot of need of
you people's help please do the needful.



Maybe you could start here :

http://tomcat.apache.org/tomcat-7.0-doc/index.html
1, 2, 3 etc..

This is not a joke.  If really you do not know what WEB-INF stands for,
and you really want to achieve what is in the subject of this thread, you
do need to read on some basics.

On this list, we do what we can to help people with Tomcat problems or
questions.
But this does not really replace some basic knowledge about Servlet
Engines in general, and Tomcat in particular.


Here are step by step instructions for setting up virtual hosts with 
Tomcat. It's a bit out of date (shoot me, maybe next month), but the 
server.xml fragments will work in the latest 7.0.x environment.


http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts

. . . just my (too few hours and too much writing) two cents
/mde/


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