Grokbase
Topics Posts Groups | in
x
[ help ]

Tabu Isiaka (ti...@videotron.ca)

Profile | Posts (4)

User Information

Display Name:Tabu Isiaka
Partial Email Address:ti...@videotron.ca
Posts:
4 total
4 in Tomcat

4 Most Recent

1) Tabu Isiaka Re: Permission denied
| +1 vote
Hi Martin, Thanks for your answer but i still have the same problem. Here is my virtual host...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi Martin,

Thanks for your answer but i still have the same problem.
Here is my virtual host description:

<VirtualHost 192.168.1.103:80>
    ServerName www.abc.com
    DocumentRoot /usr/share/tomcat5/webapps
    DirectoryIndex index.jsp

    ProxyPreserveHost On
    RewriteEngine on
   ProxyRequests on
   <proxy *>
       Order deny,allow
      Allow from all
   </proxy>
   <Location /contact/>
      ProxyPass ajp://localhost:8009/contact/
      Allow from all
   </Location>
</VirtualHost>

can you tell me if my setting is right ?

Thanks you.
Tabu

----- Original Message -----
From: "Martin Gainty" <mgainty@hotmail.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Tuesday, May 23, 2006 5:05 PM
Subject: Re: Permission denied


> The location directive for the virtual site has to be specified in
httpd.conf
>
> <Location /contact/>
>     ProxyPass ajp://localhost:8009/contact/
>     Allow from localhost
> </Location>
>
> Also determine if the admin is either blocking or using that port..if so
find a work around
> Anyone else?
> M
> *********************************************************************
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed. If you have received this email message in error, please
notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
>
>
> ----- Original Message -----
> From: "Tabu Isiaka" <tisiaka@videotron.ca>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Sent: Tuesday, May 23, 2006 4:21 PM
> Subject: Permission denied
>
>
> > Hi,
> >
> > Can someone help to found how I can resolve the following message :
> >
> > (13)Permission denied: proxy: AJP: attempt to connect to 127.0.0.1:8009
> >
> > I am trying to use apache2.2 with tomcat5 either with mod_jk or
mod_proxy_ajp.
> >
> > Thanks you for your help.
> > Tabu
> >



---------------------------------------------------------------------
To start a new topic, e-mail: [email protected: u...@tomcat.apache.org]
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
2) Tabu Isiaka Permission denied
| +1 vote
--Boundary_(ID_WZadOrOql4iBJFTGgsx/1A) Content-type: text/plain; charset=iso-8859-1...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
--Boundary_(ID_WZadOrOql4iBJFTGgsx/1A)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

Hi,

Can someone help to found how I can resolve the following message :

(13)Permission denied: proxy: AJP: attempt to connect to 127.0.0.1:8009

I am trying to use apache2.2 with tomcat5 either with mod_jk or mod_proxy_ajp.

Thanks you for your help.
Tabu

--Boundary_(ID_WZadOrOql4iBJFTGgsx/1A)--
3) Tabu Isiaka Re: Connecting Apache2.2 with Tomcat 5 using mod_proxy_ajp
| +1 vote
Hi, I inserted the Location directives in proxy_ajp.conf and when try the url the following error...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,

I inserted the Location directives in proxy_ajp.conf and when try the url
the following error appear in the error_log file:

(13)Permission denied: proxy: AJP: attempt to connect to 127.0.0.1:8009
(localhost) failed.

Any idea ?

----- Original Message -----
From: "Warren Pace" <wapace@bellsouth.net>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Friday, May 19, 2006 5:52 AM
Subject: Re: Connecting Apache2.2 with Tomcat 5 using mod_proxy_ajp


>
>
> > **************************** PROXY_AJP_.CONF ***************************
> >
> > ProxyPass /contact/*.jsp ajp://localhost:8080/contact/
> > ProxyPassReverse /contact/*.jsp ajp://localhost:8080/contact/
>
> Use port 8009 (the ajp connector uses 8009) instead of 8080
> Add a line in your HTTPD.conf to include your PROXY_AJP_CONF file as
below:
> Include /etc/apache2/extra/PROXY_AJP_CONF (whatever you've named your
file).
> Use the Location directive inside your proxy_ajp_conf file
> <Location /contact/>
>     ProxyPass ajp://localhost:8009/contact/
> </Location>
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
> > For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
> For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]
4) Tabu Isiaka Connecting Apache2.2 with Tomcat 5 using mod_proxy_ajp
| +1 vote
Hi, I'm trying to connect Apache2.2 with Tomcat5 by using mod_proxy_ajp. each time I'm trying to...
Tomcat
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi,

I'm trying to connect Apache2.2 with Tomcat5 by using mod_proxy_ajp.
each time I'm trying to access a jsp page (ex www.abc.com/def/index.jsp)
I receive the following page (with directives):

<%@ page language="java" pageEncoding="UTF-8"%> <%@ page
import="java.util.Locale"%> <%@ taglib
uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@
taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic" %> <%@ taglib
uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %> <%@
taglib uri="http://jakarta.apache.org/struts/tags-template"
prefix="template" %> <%@ taglib
uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %> <%
@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> <%@
taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

Thanks to give me hands.
Tabu Isiaka

Here are my settings:

***************************** SERVER.XML ***************************


<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"/>

  <!-- Global JNDI resources -->
  <GlobalNamingResources>

    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer"
value="30"/>

    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
    <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>


  <!-- Define the Tomcat Stand-Alone Service -->
  <Service name="Catalina">


    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false" redirectPort="8443"
acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" /> 


    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"  address="localhost"
               enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />



         
    <!-- Define the top level container in our container hierarchy -->
    <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">

<Context path="/medicontact" reloadable="true" docBase="contact">
  <Resource name="bppool"
    auth="Container"
    type="javax.sql.DataSource"
    factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    driverClassName="org.postgresql.Driver"
    url="jdbc:postgresql://192.168.1.105:5432/bp"
    removeAbandonedTimeout="2000"
    removeAbandoned="true"
    logAbandoned="true"
    maxWait="5000"
    maxIdle="3"
    maxActive="10"
    password="bpuser"
    username="bpuser"/>
</Context>
      </Host>

    </Engine>

  </Service>

</Server>

**************************** PROXY_AJP_.CONF ***************************

ProxyPass /contact/*.jsp ajp://localhost:8080/contact/
ProxyPassReverse /contact/*.jsp ajp://localhost:8080/contact/

**************************** HTTPD.CONF ***************************

ServerTokens OS

ServerRoot "/etc/httpd"

PidFile run/httpd.pid

Timeout 120

KeepAlive Off

MaxKeepAliveRequests 100

KeepAliveTimeout 15

serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>

<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

Listen 80

LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so

Include conf.d/*.conf

User apache
Group apache

ServerName www.abc.com:80

UseCanonicalName On

DocumentRoot "/usr/share/tomcat5/webapps"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/usr/share/tomcat5/webapps">

    Options Indexes FollowSymLinks 

    AllowOverride None

    Allow from all

</Directory>

<IfModule mod_userdir.c>
    UserDir disable

</IfModule>

DirectoryIndex index.html index.html.var index.jsp

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

TypesConfig /etc/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off

ErrorLog logs/error_log

LogLevel debug


ServerSignature Email


Alias /medicontact  "/usr/share/tomcat5/webapps/medicontact"

<Directory "/usr/share/tomcat5/webapps/medicontact/">
    Options Indexes +FollowSymLinks
    AllowOverride None
    Allow from all
</Directory>





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected: users-unsubs...@tomcat.apache.org]
For additional commands, e-mail: [email protected: users...@tomcat.apache.org]

spacer
Profile | Posts (4)
Home > People > Tabu Isiaka