-Chuck,

I went ahead with your instructions running the Tomcat app under the
ROOT context. Disabled the http web server (Apache) and edited the
server.xml and server-minimal.xml files under Tomcat.

This time www.mydomain.com gives a "Page Load Error", I believe
because there is no web server listening to port 80. I am not sure if
by switching the web server component of Apache 2, I totally shut down
all web server capability. But Tomcat is indicated as up and running.

I am posting here the server.xml files just in case. Any further
comments perhaps on this?

Thanks for your help

server.xml (commented out lines ommited)

<Server port="8005" shutdown="SHUTDOWN">
   <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
   <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
   <Listener 
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<GlobalNamingResources>
   <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
   <Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description="User database
that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"/>
</GlobalNamingResources>
<Service name="Catalina">
   <Connector port="80" maxHttpHeaderSize="8192" maxThreads="150"
minSpareThreads="25" maxSpareThreads="75" enableLookups="false"
redirectPort="9443" acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true"/>
<Engine name="Catalina" defaultHost="localhost">
   <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
   <Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>
</Server>


---And the server-minimal.xml :

<Server port="8005" shutdown="SHUTDOWN">
-
<GlobalNamingResources>
<!-- Used by Manager webapp -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description="User database
that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"/>
</GlobalNamingResources>
-
<Service name="Catalina">
<Connector port="80"/>
-
<!--
 This is here for compatibility only, not required
-->
<!-- <Connector port="8009" protocol="AJP/1.3" /> -->
-
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps"/>
</Engine>
</Service>
</Server>

On Fri, Jun 26, 2009 at 8:59 AM, Dimitrios
Christodoulakis<dimi....@gmail.com> wrote:
> Hello,
>
> I have been struggling for the past couple of weeks to redirect
> external traffic from the Apache 2 server to Tomcat 5.5 on a godaddy
> dedicated server.
>
> We have created a new domain on the server, which default public path
> is /home/myadmin/public_html/ when someone points there browser to
> www.mydomain.com
>
> At the same time I have uploaded and deployed the application under
> usr/java/tomcat-5.5/webapps/mydomain/
>
> As I understand at this time web content is served by the apache
> server and not Tomcat. What I have been trying to do is to have all
> pages static and dynamic be served by Tomcat.
>
> Godaddy offers limited support unless we buy into their assisted
> service plan. I followed some steps they initially suggested which
> involved creating a symbolic link between the default public directory
> /home/myadmin/public_html/ and the application directory
> usr/java/tomcat-5.5/webapps/mydomain/ by using the command:
>
> ln -s /usr/java/tomcat-5.5/webapps/mydomain/index.html
> /home/myadmin/public_html
>
> With this I hoped all requests from www.mydomain.com going to
> /home/myadmin/public_html would be automatically redirected to the
> actual tomcat content starting with the deployed application's
> index.html page. But unfortunately this does not work. I am always
> returned the 404 error message.
>
> Is there a known or recommended way to resolve this issue? After some
> searching I believe there are workarounds involving editing the
> /usr/java/tomcat-5.5/conf/server.xml and the etc/httpd/conf/http.conf
> files. Would it be possible someone to provide some general steps how
> to do this?
>
> Many thanks for any practical help.
>

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

Reply via email to