Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-05-2009
Member
 
Join Date: Nov 2008
Posts: 69
Can not access Tomcat applications

In any case I installed Apache and Tomcat and I've linked: this means that when I go to the address http://my_server/ I go directly to the page of tomcat without having to specify port

Now the problem is that I can not access the applications managed by tomcat and that I had before in apache no longer available

Do you know what conf file works correctly, in my apps in Apache and Tomcat?
Reply With Quote
  #2  
Old 08-05-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Can not access Tomcat applications

I would say httpd.conf ...

Type a document root that refers to your application handled by Tomcat
VirtualHost and possibly other ports that refer to other directory. (with alias etc)

For instance, suppose you have a HTTP Server that listens to the 80 and 443
The 80 refers to the root server in PHP + MySQL and several virtualhost
The 443 refers to the implementation in HTTPS on Tomcat with the addition of a URL rewrite to be visible on the field
Reply With Quote
  #3  
Old 08-05-2009
Member
 
Join Date: Nov 2008
Posts: 69
Re: Can not access Tomcat applications

Here is the code of file sites-enabled/000-default

Code:
<VirtualHost 192.168.1.2:80> 
ServerName 192.168.1.2 
DocumentRoot /usr/share/tomcat5.5/webapps 
ServerAdmin webmaster@foobar.com 
ErrorLog /var/log/apache2/error.log 
CustomLog /var/log/apache2/foo.log combined 

Alias / "/usr/share/tomcat5.5/server/webapps" 
<Directory "/usr/share/tomcat5.5/server/webapps"> 
Options Indexes +FollowSymLinks 
</Directory> 

JkMount /* default 

#Alias /websvn "/usr/share/websvn" 
#<Directory "/usr/share/websvn"> 
# Options FollowSymLinks 
# order allow,deny 
# allow from all 
# AuthType Basic 
# AuthName "Subversion Repository" 
# Require valid-user 
# AuthUserFile /etc/apache2/dav_svn.passwd 
# <IfModule mod_php4.c> 
# php_flag magic_quotes_gpc Off 
# php_flag track_vars On 
# </IfModule> 
#</Directory> 

</VirtualHost>
I am very unsure whether I should enter httpd.conf
Reply With Quote
  #4  
Old 08-05-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Can not access Tomcat applications

mod_proxy or mod_ajp13 in Apache ?

JkMount /* default

That means that you are referencing all to the tomcat
Reply With Quote
  #5  
Old 08-05-2009
Member
 
Join Date: Nov 2008
Posts: 69
Re: Can not access Tomcat applications

Yet I have configured mod_jk. And for "JkMount /* default", that's what I noticed. I have played with JkMount and JkUnMount to balance traffic to the right server.

Thank you for your help
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Can not access Tomcat applications"
Thread Thread Starter Forum Replies Last Post
cannot access pre-installed applications in Nokia C2-01 Azza_B_UK Portable Devices 4 17-07-2011 12:54 PM
Can't access applications world overseas on my playbook Caryas Portable Devices 6 20-05-2011 06:07 PM
Cannot enable all users to access all applications loaded on Windows 7 PC Maudy Windows Software 4 13-08-2010 03:12 PM
Cannot access web applications on port 80 Gunwant Networking & Security 9 18-05-2010 05:06 PM
Applications cannot access internet canoe Networking & Security 4 10-12-2008 12:25 PM


All times are GMT +5.5. The time now is 05:50 PM.