RE: Mod_jk Configuration

2015-01-27 Thread Chris Arnold
>I'm surprised that the Alfresco team is still giving-out advice that >was appropriate in the mid-2000s. >Some notes: >1. Don't put in server.xml. Just don't. >2. "debug" hasn't been used in ... forever. >3. path="" is bad, and isn't necessary if you follow #1 It did not work so i took it out

Re: Mod_jk Configuration

2015-01-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/26/15 8:05 PM, Chris Arnold wrote: >>> Yeah, that document is evidently a pack of lies. Specifically, >>> the "path" and "docbase" attributes in are ignored >>> in META-INF/context.xml files, and you really shouldn't have >>> your any

RE: Mod_jk Configuration

2015-01-26 Thread Chris Arnold
>> Yeah, that document is evidently a pack of lies. Specifically, >> the "path" and "docbase" attributes in are ignored in >> META-INF/context.xml files, and you really shouldn't have your >> anywhere else (except in >> conf/[engine]/[host]/[appname].xml, which behaves almost the same >> way). >>

Re: Mod_jk Configuration

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/26/15 5:36 PM, Chris Arnold wrote: > >> Yeah, that document is evidently a pack of lies. Specifically, >> the "path" and "docbase" attributes in are ignored in >> META-INF/context.xml files, and you really shouldn't have your >> any

Re: Mod_jk Configuration

2015-01-26 Thread Chris Arnold
> Yeah, that document is evidently a pack of lies. Specifically, the > "path" and "docbase" attributes in are ignored in > META-INF/context.xml files, and you really shouldn't have your > anywhere else (except in conf/[engine]/[host]/[appname].xml, > which behaves almost the same way). > > Best

Re: Mod_jk Configuration

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/26/15 4:52 PM, Chris Arnold wrote: >> The best possible setup here is to set up httpd with more than >> one VirtualHost (and SNI, since you are using HTTPS) with the >> correct hostnames, etc., and only use JkMount from the "share2" >> V

RE: Mod_jk Configuration

2015-01-26 Thread Chris Arnold
>>If the application can't handle that (try it!), you'll have to make >>other arrangements. >According to: >https://wiki.alfresco.com/wiki/Deploying_To_Server >that is not even necessary. I understand that link is a years old and talks >about tomcat 6 but the general >idea is the same. I will tr

RE: Mod_jk Configuration

2015-01-26 Thread Chris Arnold
>The best possible setup here is to set up httpd with more than one >VirtualHost (and SNI, since you are using HTTPS) with the correct >hostnames, etc., and only use JkMount from the "share2" VirtualHost. >Then, re-name your application from share.war to ROOT.war and >re-deploy it into Tomcat. Use

Re: Mod_jk Configuration

2015-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/25/15 7:38 PM, Chris Arnold wrote: >> If you won't re-name the web application, I think redirects will >> be your best bet. If a client requests >> http(s)://share2.domain.tld/, you should redirect them to >> https://share2.domain.tld/sh

Re: Mod_jk Configuration

2015-01-25 Thread Chris Arnold
> If you won't re-name the web application, I think redirects will be > your best bet. If a client requests http(s)://share2.domain.tld/, you > should redirect them to https://share2.domain.tld/share/ and then > "JkMount /share/* worker1". You can redirect using RedirectPermanant > or a few other

Re: Mod_jk Configuration

2015-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/23/15 7:49 PM, Chris Arnold wrote: > >> *sigh* >> >> If you only want to proxy for one VirtualHost, then only set up >> JkMounts in that one VirtualHost. >> >> Like this: >> >> ServerName share2..xxx >> >> JkMount /* worker1 (

Re: Mod_jk Configuration

2015-01-23 Thread Chris Arnold
> *sigh* > > If you only want to proxy for one VirtualHost, then only set up > JkMounts in that one VirtualHost. > > Like this: > > >ServerName share2..xxx > >JkMount /* worker1 (or "balancer", whichever you want) > Maybe I wasn't clear in my other reply, the above jkmount /* wo

Re: Mod_jk Configuration

2015-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/23/15 10:40 AM, Chris Arnold wrote: >> What you want is: > >> JkMount /share2/* worker1 > >> or maybe: > >> JkMount /share2/* balancer > >> workers.properties defines the workers (target host/port, >> connection options, etc.) and th

RE: Mod_jk Configuration

2015-01-23 Thread Chris Arnold
>What you want is: >JkMount /share2/* worker1 >or maybe: >JkMount /share2/* balancer >workers.properties defines the workers (target host/port, connection >options, etc.) and the JkMount directives in httpd.conf map URL >patterns to those workers. So JkMount /* proxied everything and we only

RE: Mod_jk Configuration

2015-01-23 Thread Chris Arnold
>What you want is: >JkMount /share2/* worker1 >or maybe: >JkMount /share2/* balancer >workers.properties defines the workers (target host/port, connection >options, etc.) and the JkMount directives in httpd.conf map URL >patterns to those workers. So JkMount /* proxied everything and we only

Re: Mod_jk Configuration

2015-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/21/15 6:41 PM, Chris Arnold wrote: >> Chris, > >> On 1/21/15 5:56 PM, Chris wrote: You must have changed something >> since your original >configuration. Do you have "JkMount ajp13" >> somewhere? You need to use >the worker name and not

Re: Mod_jk Configuration

2015-01-21 Thread Rainer Jung
Am 22.01.2015 um 01:03 schrieb Chris Arnold: +1 And also, could you specify again what URL you are >requesting in the browser, which you would expect to be proxied to Tomcat ? https://share2.domain.tld Looking at the log you just showed, it seemed that the >only requests ever passed throug

RE: Mod_jk Configuration

2015-01-21 Thread Chris Arnold
>+1 >And also, could you specify again what URL you are >requesting in the browser, >which you >would expect to be proxied to Tomcat ? https://share2.domain.tld >Looking at the log you just showed, it seemed that the >only requests ever >passed through >mod_jk for evaluation, where things like

Re: Mod_jk Configuration

2015-01-21 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/21/15 5:56 PM, Chris Arnold wrote: When i look at the apache log for that request, i dont see where the request is even making it to apache or tomcat. Try to request a static file from DocumentRoot directo

RE: Mod_jk Configuration

2015-01-21 Thread Chris Arnold
>Chris, >On 1/21/15 5:56 PM, Chris wrote: >You must have changed something since your original >configuration. Do >you have "JkMount ajp13" somewhere? You need to use >the worker name >and not the protocol name. >Can you post your updated workers.properties file, and >related >httpd.conf configur

Re: Mod_jk Configuration

2015-01-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/21/15 5:56 PM, Chris Arnold wrote: >>> When i look at the apache log for that request, i dont see >>> where the request is even making it to apache or tomcat. >>> >> >> Try to request a static file from DocumentRoot directory. >> >> I

RE: Mod_jk Configuration

2015-01-21 Thread Chris Arnold
>> When i look at the apache log for that request, i dont see where the request >> is even making it to apache or tomcat. >> > > Try to request a static file from DocumentRoot directory. > > If you cannot, then your HTTPS is not configured correctly. Get that > working first. >>>Yeah, I overlooke

RE: Mod_jk Configuration

2015-01-16 Thread Chris Arnold
> #This rewrites https://share.anydomain.tld to our share server > RewriteEngine On > RewriteCond %{HTTP_HOST} ^share\. > RewriteCond %{HTTPS} on > RewriteCond %{REQUEST_URI} !^/share/ > RewriteRule ^/(.*) https://share.domain.tld:8443/share/ [P] That will forward any

Re: Mod_jk Configuration

2015-01-16 Thread Rainer Jung
Am 17.01.2015 um 04:05 schrieb Chris Arnold: When i look at the apache log for that request, i dont see where the request is even making it to apache or tomcat. Try to request a static file from DocumentRoot directory. If you cannot, then your HTTPS is not configured correctly. Get that work

RE: Mod_jk Configuration

2015-01-16 Thread Chris Arnold
>> When i look at the apache log for that request, i dont see where the request >> is even making it to apache or tomcat. >> > > Try to request a static file from DocumentRoot directory. > > If you cannot, then your HTTPS is not configured correctly. Get that > working first. >>Yeah, I overlooked

Re: Mod_jk Configuration

2015-01-16 Thread Rainer Jung
Am 17.01.2015 um 03:43 schrieb Chris Arnold: No JkMount? mod_jk uses the JkMount directive to decide, which >>requests should be forwarded. Something like JkMount /myapp|/* balancer The directive should be put into the VirtualHost that is >>used in your Apache web server config to serve

Re: Mod_jk Configuration

2015-01-16 Thread Rainer Jung
Am 17.01.2015 um 01:51 schrieb Konstantin Kolinko: 2015-01-17 2:31 GMT+03:00 Chris Arnold : Current working setup: apache 2.2 using mod_jk to pass 443 requests to tomcat on 8443. We are migrating from SLES 11 SP3 to SLEs 12. On SLES 11 we use alfresco 5.0.c which includes tomact 7.x i believ

RE: Mod_jk Configuration

2015-01-16 Thread Chris Arnold
>>No JkMount? >>mod_jk uses the JkMount directive to decide, which >>requests should be >>forwarded. Something like >>JkMount /myapp|/* balancer >>The directive should be put into the VirtualHost that is >>used in your >>Apache web server config to serve the requests for >>/myapp. When i look a

Re: Mod_jk Configuration

2015-01-16 Thread Rainer Jung
Am 17.01.2015 um 00:31 schrieb Chris Arnold: Current working setup: apache 2.2 using mod_jk to pass 443 requests to tomcat on 8443. We are migrating from SLES 11 SP3 to SLEs 12. On SLES 11 we use alfresco 5.0.c which includes tomact 7.x i believe. SLES 11 has apache 2.2.10. SLES 12 has apache

Re: Mod_jk Configuration

2015-01-16 Thread Konstantin Kolinko
2015-01-17 2:31 GMT+03:00 Chris Arnold : > Current working setup: > > apache 2.2 using mod_jk to pass 443 requests to tomcat on 8443. > > > We are migrating from SLES 11 SP3 to SLEs 12. On SLES 11 we use alfresco > 5.0.c which includes tomact 7.x i believe. SLES 11 has apache 2.2.10. SLES 12 > ha

Re: mod_jk configuration woes

2008-10-17 Thread vjg
>> I have the following configuration (config files below) and am >> encountering the error >> “ajp_connection_tcp_get_message::jk_ajp_common.c (1033): wrong >> message format 0x4854 from 127.0.0.1:8082” when attempting to access >> a URL that matches one of my JKMounted entries. My versions ar

Re: mod_jk configuration woes

2008-10-17 Thread Rainer Jung
[EMAIL PROTECTED] schrieb: >> I have the following configuration (config files below) and am >> encountering the error >> “ajp_connection_tcp_get_message::jk_ajp_common.c (1033): wrong >> message format 0x4854 from 127.0.0.1:8082” when attempting to access >> a URL that matches one of my JKMounte

Re: mod_jk configuration woes

2008-10-17 Thread AFaller
> I have the following configuration (config files below) and am > encountering the error > “ajp_connection_tcp_get_message::jk_ajp_common.c (1033): wrong > message format 0x4854 from 127.0.0.1:8082” when attempting to access > a URL that matches one of my JKMounted entries. My versions are > li

Re: mod_jk configuration issue

2008-07-16 Thread Steve Ochani
On 16 Jul 2008 at 13:41, Vinod Nagarajan wrote: Date sent: Wed, 16 Jul 2008 13:41:09 -0700 From: Vinod Nagarajan <[EMAIL PROTECTED]> Subject:mod_jk configuration issue To: users@tomcat.apache.org Send reply to: Tomcat Users List > Hi, > > I am kind of new to tomcat and apach

Re: mod_jk configuration for production

2007-02-20 Thread Rainer Jung
What's your idea why you configured a socket timeout of 2? nuka schrieb: > Hello, > > I am facing to a problem concerning apache-tomcat configuration via mod_jk > for our production environment. We are using Apache: 2.0.55, Tomcat 5.0, > mod_jk 1.2.15. > > Our first problem has been raised some

Re: mod_jk configuration

2006-10-31 Thread Christopher Schultz
Bruno, >> Hmm... I didn't know that one could "upload file" to an email... >> consider using copy/paste in the future. It seems to have worked, here. > > I'm using www.nabble.com... Ah. I think the list will clip-out attachments. I'm not sure of the rules, but copy/paste pretty much always works

Re: mod_jk configuration

2006-10-31 Thread bcochofel
Christopher Schultz-2 wrote: > > Hmm... I didn't know that one could "upload file" to an email... > consider using copy/paste in the future. It seems to have worked, here. > I'm using www.nabble.com... Christopher Schultz-2 wrote: > >> ### jps-examples #

Re: mod_jk configuration

2006-10-31 Thread Christopher Schultz
Bruno, bcochofel wrote: > Christopher Schultz-2 wrote: >>> Here's my /etc/apache2/conf.d/jk.conf: >>> http://www.nabble.com/file/3921/jk.conf jk.conf >> (These are never coming through. How are you trying to attach files?) >> > > I'm using Upload File... option. Hmm... I didn't know that one c

Re: mod_jk configuration

2006-10-31 Thread bcochofel
Christopher Schultz-2 wrote: > >> Here's my /etc/apache2/conf.d/jk.conf: >> http://www.nabble.com/file/3921/jk.conf jk.conf > > (These are never coming through. How are you trying to attach files?) > I'm using Upload File... option. Here's a copy/paste: # simple configuration for apache (

Re: mod_jk configuration

2006-10-31 Thread Christopher Schultz
Bruno, > Now I have an even stranger behavior... > > I can only JkMount /jsp-examples, I did the same to /tomcat-docs, > /servlets-examples and /cocoon and I get : > > Forbidden > You don't have permission to access /tomcat-docs/ on this server. > Additionally, a 403 Forbidden error was encounte

Re: mod_jk configuration

2006-10-31 Thread bcochofel
Now I have an even stranger behavior... I can only JkMount /jsp-examples, I did the same to /tomcat-docs, /servlets-examples and /cocoon and I get : Forbidden You don't have permission to access /tomcat-docs/ on this server. Additionally, a 403 Forbidden error was encountered while trying to use

Re: mod_jk configuration

2006-10-31 Thread bcochofel
Christopher Schultz-2 wrote: > > Bruno, > >> Alias /jsp-examples "/srv/www/tomcat5/base/webapps/jsp-examples" >> JkMount /jsp-examples/*.jsp ajp13 >> JkMount /jsp-examples/j_security_check ajp13 > > These three ought to do the trick. Which files aren't being served by > Apache h

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > Alias /jsp-examples "/srv/www/tomcat5/base/webapps/jsp-examples" > JkMount /jsp-examples/*.jsp ajp13 > JkMount /jsp-examples/j_security_check ajp13 These three ought to do the trick. Which files aren't being served by Apache httpd? Can you give an example of a URI that sho

Re: mod_jk configuration

2006-10-30 Thread bcochofel
Well I tried that but no good... I'vre tried this and still nothing: # The following line makes apache aware of the location of # the /jsp-examples context Alias /jsp-examples "/srv/www/tomcat5/base/webapps/jsp-examples" Options Indexes FollowSymLinks AllowOverrid

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > But when I use "JkMount /jsp-examples ajp13" doesn't this tell Apache that > everything inside /jsp-examples "goes" to Tomcat? No, it doesn't. JkMount does two kinds of matching: exact and wildcard. Exact: JkMount /jsp-examples ajp13 This will map the URI "/jsp-examples" to Tomcat,

Re: mod_jk configuration

2006-10-30 Thread bcochofel
But when I use "JkMount /jsp-examples ajp13" doesn't this tell Apache that everything inside /jsp-examples "goes" to Tomcat? Christopher Schultz-2 wrote: > > Bruno, > >> I have one more question, let's take /jsp-examples to explain... >> I want *.jsp send to tomcat for processing but all stat

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > I have one more question, let's take /jsp-examples to explain... > I want *.jsp send to tomcat for processing but all static contents processed > by apache, how can I do this? This should be the default. Anything for which you do not explicitly have a "JkMount" directive will be served b

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > Well I've tried adding DirectoryIndex index.html index.htm index.jsp but no > good... Can you post the relevant portions of your httpd.conf? > Does jk.cong overrides my apache conf? jk.conf is just included in httpd.conf (right?), so it can certainly override your httpd.conf. -chris

Re: mod_jk configuration

2006-10-30 Thread bcochofel
I had JkMount /jsp-examples worker1 and now the problem is gone... Thanks I have one more question, let's take /jsp-examples to explain... I want *.jsp send to tomcat for processing but all static contents processed by apache, how can I do this? Sorry for all the question but I'm new to

Re: mod_jk configuration

2006-10-30 Thread Martin Gainty
Monday, October 30, 2006 10:19 AM Subject: Re: mod_jk configuration > > Well I've tried adding DirectoryIndex index.html index.htm index.jsp but no > good... > My Apache configuration has this and all the links work with or without the > / > Does jk.cong overrides my apa

Re: mod_jk configuration

2006-10-30 Thread bcochofel
Well I would appreciated... Jorge Cabrera wrote: > > Hi, > > Christopher Schultz wrote: >> Bruno, >> >> >>> when I try >>> http://localhost/jsp-examples http://localhost/jsp-examples (without >>> the /) >>> I get this error: >>> >>> Forbidden >>> You don't have permission to access /jsp-e

Re: mod_jk configuration

2006-10-30 Thread bcochofel
Well I've tried adding DirectoryIndex index.html index.htm index.jsp but no good... My Apache configuration has this and all the links work with or without the / Does jk.cong overrides my apache conf? Christopher Schultz-2 wrote: > > Bruno, > >> when I try >> http://localhost/jsp-examples http

Re: mod_jk configuration

2006-10-30 Thread Jorge Cabrera
Hi, Christopher Schultz wrote: Bruno, when I try http://localhost/jsp-examples http://localhost/jsp-examples (without the /) I get this error: Forbidden You don't have permission to access /jsp-examples on this server. Additionally, a 403 Forbidden error was encountered while trying to us

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > when I try > http://localhost/jsp-examples http://localhost/jsp-examples (without the /) > I get this error: > > Forbidden > You don't have permission to access /jsp-examples on this server. > Additionally, a 403 Forbidden error was encountered while trying to use an > ErrorDocument to

RE: mod_jk configuration directives in VirtualHost sections

2006-01-26 Thread Jonathan Woods
Dan - Thanks very much for all this - looks like it should work with mod_jk too! I'll let you know how I get on. Jon -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: 26 January 2006 19:32 To: users@tomcat.apache.org Subject: RE: mod_jk configuration direc

RE: mod_jk configuration directives in VirtualHost sections

2006-01-26 Thread Didier McGillis
I did mod_jk2 with Virtual Host, and while its not the same I think that doing VH will not be a problem once you get an idea of how it should/can be setup. THIS IS PSEUDO, DO NOT TAKE AS GOSPEL TRUTH !!! NO SUPPORT! :p -- workers.properties file -- # Setting Tomcat & Java Home