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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to