You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Scott Purcell <sp...@vertisinc.com> on 2006/05/08 18:59:37 UTC

Site Configuration on 5.5.15 Pt 2

Hello,

Last Friday, I posted the below thread, and followed Chris' directions
to create the virtual host. All appears good, and works great.

I only ran into one last problem, and was hoping someone may know the
solution. When google indexes my site, and I enter [The Unique Pear]
into the search bar, it brings back my site, actually on page 1 near the
top. This is great news. I only have one problem with this. When you
hover the link or click the link, it takes the user to
[http://theuniquepear.com] and not the [http://www.theuniquepear.com]
site.

I have a ssl certificate that points to www.sitename. So the site
certificate is screwed up.

So my question is, how does google get the www? Or is this something I
need to handle? And if so, does this have anything to do with the Alias
I created (below)?

Thanks for any input
Scott






-----Original Message-----
From: Chris Berthold [mailto:cberthold@styleline.com] 
Sent: Friday, May 05, 2006 8:35 AM
To: 'Tomcat Users List'
Subject: RE: Site Configuration on 5.5.15

No you won't run into any issues.  You can do Virtual Host Based
direction
of your sites.  The localhost can be setup for your admin console and
such
and you can create www.theuniquepear.com to point to a different root.
In
server.xml another <host> entry like so. The application base can be
whatever you want.  Deploy to that directory and you won't need the
index.jsp to redirect.  Also keep in mind that if you use an index.jsp
it
needs to do a forward to the servlet or jsp that you are displaying and
not
a redirect.  I had the same problem with google and the other search
engines.

<Host name="www.theuniquepear.com" debug="0"
appBase="/www/theuniquepear.com/ROOT" 
       unpackWARs="true" autoDeploy="true">
		<Alias>theuniquepear.com</Alias>
		<Alias>www</Alias>

		<Context path="" docBase="" debug="1"/>

		<Valve
className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="theuniquepear_access_log."
suffix=".txt"
                 pattern="common" resolveHosts="false"/>
	</Host>

Chris Berthold
IT Systems Analyst
Commercial Refrigerator Door Company
941 . 371 . 8110 x 205
-----Original Message-----
From: Scott Purcell [mailto:spurcell@vertisinc.com] 
Sent: Friday, May 05, 2006 9:21 AM
To: users@tomcat.apache.org
Subject: Site Configuration on 5.5.15

I am running Tomcat 5.5.15 on a PC running Windows XP. I have been
battling this problem for 6 months, and could use some help.

 

I purchased a URL for my web site. I created the site in a folder under
the root document called "unique". As I was building the site, I would
hit the site like so:  http://localhost/unique/index.jsp. I finished the
site up 6 months or so ago, and purchased my DNS name. 

 

Here is where the problem has been culminating from. I added my dns
entry into the server.xml and found that by hitting the url that the
site would point into the root folder. So within the root folder I
created a jsp page that did a redirect to the /unique/index.jsp page.
This seems to work, and people can hit my site.

 

But for some strange issue, google has not been able to index the site,
and when I ran "Site Magellan" on the site last night it only sees the
first page. It never sees any links. Googlebots never see any links, and
not site Magellan sees no links. When I run Lynx on the site, can
navigate just fine. But eveidently something is screwed up in regards to
my tomcat configuration, or something.

 

The url is <http://www.theuniquepear.com <http://www.theuniquepear.com/>
>

 

If anyone knows where I may of screwed up or has ideas, please let me
know, as I am about at the end of my rope on this one. I know I could
move the site into the root folder, but what if I add another DNS
tomorrow for another site, then I would run into the same issue right? 

 

Thanks, much

Scott



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


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


Re: Site Configuration on 5.5.15 Pt 2

Posted by Hassan Schroeder <ha...@gmail.com>.
On 5/8/06, Mark Eggers <it...@yahoo.com> wrote:

> Some thoughts on a solution:
>
> a) Not respond to theuniquepear.com as a web site.
> b) Virtual host that responds to theuniquepear.com
>    consisting of a single page with a redirect to
>    www.theuniquepear.com.

c) use a Filter on your webapp to redirect to the preferred hostname.

   You can also use it to redirect traffic that doesn't need to be SSL
   to the corresponding http:// url...

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

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


RE: Site Configuration on 5.5.15 Pt 2

Posted by Chris Berthold <cb...@styleline.com>.
The alias is only there so Tomcat knows to answer for that host if it see's
it.  A lot of people do it for the people who can't properly type 3 W's.  So
they add 2 W's and 4's for the host and setup DNS so it will answer all
those requests and the clients never realize how stupid they really are.  In
your case I can see it's just a matter of making sure that your link's for
checkout and login refer to: https://www.theuniquepear.com 




Chris Berthold
IT Systems Analyst
Commercial Refrigerator Door Company
941 . 371 . 8110 x 205
-----Original Message-----
From: Scott Purcell [mailto:spurcell@vertisinc.com] 
Sent: Monday, May 08, 2006 1:00 PM
To: Tomcat Users List
Subject: Site Configuration on 5.5.15 Pt 2

Hello,

Last Friday, I posted the below thread, and followed Chris' directions
to create the virtual host. All appears good, and works great.

I only ran into one last problem, and was hoping someone may know the
solution. When google indexes my site, and I enter [The Unique Pear]
into the search bar, it brings back my site, actually on page 1 near the
top. This is great news. I only have one problem with this. When you
hover the link or click the link, it takes the user to
[http://theuniquepear.com] and not the [http://www.theuniquepear.com]
site.

I have a ssl certificate that points to www.sitename. So the site
certificate is screwed up.

So my question is, how does google get the www? Or is this something I
need to handle? And if so, does this have anything to do with the Alias
I created (below)?

Thanks for any input
Scott






-----Original Message-----
From: Chris Berthold [mailto:cberthold@styleline.com] 
Sent: Friday, May 05, 2006 8:35 AM
To: 'Tomcat Users List'
Subject: RE: Site Configuration on 5.5.15

No you won't run into any issues.  You can do Virtual Host Based
direction
of your sites.  The localhost can be setup for your admin console and
such
and you can create www.theuniquepear.com to point to a different root.
In
server.xml another <host> entry like so. The application base can be
whatever you want.  Deploy to that directory and you won't need the
index.jsp to redirect.  Also keep in mind that if you use an index.jsp
it
needs to do a forward to the servlet or jsp that you are displaying and
not
a redirect.  I had the same problem with google and the other search
engines.

<Host name="www.theuniquepear.com" debug="0"
appBase="/www/theuniquepear.com/ROOT" 
       unpackWARs="true" autoDeploy="true">
		<Alias>theuniquepear.com</Alias>
		<Alias>www</Alias>

		<Context path="" docBase="" debug="1"/>

		<Valve
className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="theuniquepear_access_log."
suffix=".txt"
                 pattern="common" resolveHosts="false"/>
	</Host>

Chris Berthold
IT Systems Analyst
Commercial Refrigerator Door Company
941 . 371 . 8110 x 205
-----Original Message-----
From: Scott Purcell [mailto:spurcell@vertisinc.com] 
Sent: Friday, May 05, 2006 9:21 AM
To: users@tomcat.apache.org
Subject: Site Configuration on 5.5.15

I am running Tomcat 5.5.15 on a PC running Windows XP. I have been
battling this problem for 6 months, and could use some help.

 

I purchased a URL for my web site. I created the site in a folder under
the root document called "unique". As I was building the site, I would
hit the site like so:  http://localhost/unique/index.jsp. I finished the
site up 6 months or so ago, and purchased my DNS name. 

 

Here is where the problem has been culminating from. I added my dns
entry into the server.xml and found that by hitting the url that the
site would point into the root folder. So within the root folder I
created a jsp page that did a redirect to the /unique/index.jsp page.
This seems to work, and people can hit my site.

 

But for some strange issue, google has not been able to index the site,
and when I ran "Site Magellan" on the site last night it only sees the
first page. It never sees any links. Googlebots never see any links, and
not site Magellan sees no links. When I run Lynx on the site, can
navigate just fine. But eveidently something is screwed up in regards to
my tomcat configuration, or something.

 

The url is <http://www.theuniquepear.com <http://www.theuniquepear.com/>
>

 

If anyone knows where I may of screwed up or has ideas, please let me
know, as I am about at the end of my rope on this one. I know I could
move the site into the root folder, but what if I add another DNS
tomorrow for another site, then I would run into the same issue right? 

 

Thanks, much

Scott



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


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



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


Re: Site Configuration on 5.5.15 Pt 2

Posted by Mark Eggers <it...@yahoo.com>.
There are probably a couple of things going on here.

On the <Alias>name</Alias>, do you really need Tomcat
to respond to the host name of www?  You probably just
want Tomcat to respond to www.theuniquepear.com and
theuniquepear.com.  I don't think the
<Alias>www</Alias> is necessary.

It looks like www.theuniquepear.com is a CNAME for
theuniquepear.com.  A CNAME is resolved to the
underlying name, so I think the resolution goes like
this:

a) www.theuniquepear.com is a CNAME for 
   theuniquepear.come
b) theuniquepear.com is used to get the address

Google comes back with theuniquepear.com in its search
results.

Instead of a CNAME, you could use a separate A record
to resolve www.theuniquepear.com to your web site. 
That still would leave you with a certificate problem
if someone entered theuniquepear.com in the browser
address bar.

Maybe reversing the CNAME entries is what you need. 
In other words:

www.theuniquepear.com IN A     66.128.124.198
theuniquepear.com     IN CNAME www.theuniquepear.com

That would get Google to return www.theuniquepear.com
in irs search results. There would still be a
certificate issue if someone typed theuniquepear.com
in the browser address bar.

Some thoughts on a solution:

a) Not respond to theuniquepear.com as a web site.
b) Virtual host that responds to theuniquepear.com 
   consisting of a single page with a redirect to 
   www.theuniquepear.com.

Just some random thoughts . . . .

/mde/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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