Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread PAlvin
Removing the [R] from the RewriteRule breaks everything and no page
is served:

RewriteRule ^/$ /home.htm  **does not work**

I'm curious: how does everyone else map the domain request to an
actual page???

domain.com --to-- domain.com/home.htm

Everyone must be doing this, right?  What are other solutions for
doing this?

Pete



On Mon, 25 Apr 2005 08:13:19 +0200, Trond G. Ziarkowski wrote:
Hi,

try removing the [R] from your RewriteRule. If you read up on the
mod_rewrite docs, you should see that the [R] flag is causing the
redirect.

Trond

PAlvin wrote:

I'm currently using Tomcat 4.

When someone goes to my site, say, www.site.com, I'd like it run a
servlet for the home page instead of a static page (my entire site
is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I
created a re-write rule in the Apache configuration file like this:

RewriteEngine on
RewriteRule ^/$ /home.htm [R]

This works great, EXCEPT, that the browser is sent a redirect and I
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I DON'T
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:

www.site.com ---run-- www.site.com/home.htm

without a redirect?

How do I get www.site.com requests to go to Tomcat???

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread PAlvin
Thanks, but it still doesn't work!  I removed the RewriteRule from
httpd.conf and added the welcome-file-list section to the web.xml
file.   Now, when I go to my vanilla domain (www.smartmicro.com) I
get this message:

Forbidden
You don't have permission to access / on this server.
Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.7b DAV/2 mod_jk/1.2.4
Server at www.smartmicro.com Port 80

It's as if Apache isn't even trying to forward the request to Tomcat.

What do you guys configure, next, to get www.domain.com requests to
be processed by Tomcat?

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'


On Thu, 12 May 2005 17:41:27 -0400, Trung Nguyen wrote:
Put these lines into web.xml file

welcome-file-list
welcome-filehome.htm/welcome-file
/welcome-file-list

Hope this help!

Trung


-Original Message-
From: PAlvin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 5:31 PM
To: Tomcat Users List
Subject: Re: How get www.site.com homepage requests to forward to
Tomcat
without a redirect?


Removing the [R] from the RewriteRule breaks everything and no page
is served:

RewriteRule ^/$ /home.htm  **does not work**

I'm curious: how does everyone else map the domain request to an
actual page???

domain.com --to-- domain.com/home.htm

Everyone must be doing this, right?  What are other solutions for
doing this?

Pete



On Mon, 25 Apr 2005 08:13:19 +0200, Trond G. Ziarkowski wrote:
Hi,

try removing the [R] from your RewriteRule. If you read up on the
mod_rewrite docs, you should see that the [R] flag is causing the
redirect.

Trond

PAlvin wrote:

I'm currently using Tomcat 4.

When someone goes to my site, say, www.site.com, I'd like it run a
servlet for the home page instead of a static page (my entire site
is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I
created a re-write rule in the Apache configuration file like
this:

RewriteEngine on
RewriteRule ^/$ /home.htm [R]

This works great, EXCEPT, that the browser is sent a redirect and
I
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I
DON'T
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:

www.site.com ---run-- www.site.com/home.htm

without a redirect?

How do I get www.site.com requests to go to Tomcat???

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'







---
-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do you get images to cache?

2005-05-09 Thread PAlvin
Background: For my web pages, since they are dynamically generated, I
want them NOT to be stored in browsers' caches.  No problem; I know
the tags 'n such to put in the pages so they don't cache.

BUT, for my images, I DO want the images to cache in the browser's
cache to make the pages load quicker and to save Internet traffic.

Question: How do I get the images to cache?

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread PAlvin
(We get about 1,000 visitors a day to our site.)

Just curious: Isn't Tomcat responses inefficient because it has to
pass the response back to Apache via a named pipe or TCP or some
other connector mechanism?

Peter Alvin




How much traffic are you really getting to your site? If you're like
a
majority of sites, not enough that the benefit of Apache is going to
really
be noticable.

Regards,

Will Hartung
([EMAIL PROTECTED])



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-24 Thread PAlvin
I'm currently using Tomcat 4.

When someone goes to my site, say, www.site.com, I'd like it run a
servlet for the home page instead of a static page (my entire site is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I
created a re-write rule in the Apache configuration file like this:

   RewriteEngine on
   RewriteRule ^/$ /home.htm [R]

This works great, EXCEPT, that the browser is sent a redirect and I
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I DON'T
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:

   www.site.com ---run-- www.site.com/home.htm

without a redirect?

How do I get www.site.com requests to go to Tomcat???

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]