Re: RE: RE: [users@httpd] Apache ReverseProxy for JavaWebStart Application.

2018-01-25 Thread kiran kumar

Rick,
I also tried placing the Proxy configuration inside the Location block as well, 
but it didn't work.
 
Servername public.example.com

ProxyRequests Off
ProxyPass   “http://localhost:8080/ServicesWeb”ProxyPassReverse   
“http://localhost:8080/ServicesWeb”Substitute 
"s|http://localhost:8080/|http://public.example.com:85/|i"


Please find the attached launch.jnlp file that gets generated that has the urls 
generated with the application server urls instead of apache urls. Meanwhile i 
will go through the FilterDeclare/FilterProver/FilterChain.
But tell about using ProxyPreserveHost is solving the issue, but having Proxy 
for third party applications are not working. Do you have any idea on that, why 
ProxyPreserveHost works if the apache and application server are in the box, 
but not for applications running in different box?


Please reply.
ThanksKiran
On Thursday 25 January 2018, 11:09:27 AM GMT-5, Houser, Rick 
 wrote:  
 
 #yiv5204526202 #yiv5204526202 -- _filtered #yiv5204526202 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv5204526202 
{panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv5204526202 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv5204526202 
#yiv5204526202 p.yiv5204526202MsoNormal, #yiv5204526202 
li.yiv5204526202MsoNormal, #yiv5204526202 div.yiv5204526202MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv5204526202 a:link, 
#yiv5204526202 span.yiv5204526202MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv5204526202 a:visited, #yiv5204526202 
span.yiv5204526202MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv5204526202 
p.yiv5204526202msonormal0, #yiv5204526202 li.yiv5204526202msonormal0, 
#yiv5204526202 div.yiv5204526202msonormal0 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv5204526202 
p.yiv5204526202msonormal0, #yiv5204526202 li.yiv5204526202msonormal0, 
#yiv5204526202 div.yiv5204526202msonormal0 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv5204526202 
p.yiv5204526202msonormal, #yiv5204526202 li.yiv5204526202msonormal, 
#yiv5204526202 div.yiv5204526202msonormal 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv5204526202 
p.yiv5204526202msochpdefault, #yiv5204526202 li.yiv5204526202msochpdefault, 
#yiv5204526202 div.yiv5204526202msochpdefault 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv5204526202 
p.yiv5204526202msonormal1, #yiv5204526202 li.yiv5204526202msonormal1, 
#yiv5204526202 div.yiv5204526202msonormal1 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv5204526202 
p.yiv5204526202msonormal01, #yiv5204526202 li.yiv5204526202msonormal01, 
#yiv5204526202 div.yiv5204526202msonormal01 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv5204526202 
p.yiv5204526202msochpdefault1, #yiv5204526202 li.yiv5204526202msochpdefault1, 
#yiv5204526202 div.yiv5204526202msochpdefault1 
{margin-right:0in;margin-left:0in;font-size:10.0pt;}#yiv5204526202 
span.yiv5204526202ydp76fd50bdyiv6002100983ydp811169beskimlinks-unlinked 
{}#yiv5204526202 span.yiv5204526202msohyperlink {}#yiv5204526202 
span.yiv5204526202msohyperlinkfollowed {}#yiv5204526202 
span.yiv5204526202emailstyle23 {}#yiv5204526202 span.yiv5204526202msohyperlink1 
{color:#0563C1;text-decoration:underline;}#yiv5204526202 
span.yiv5204526202msohyperlinkfollowed1 
{color:#954F72;text-decoration:underline;}#yiv5204526202 
span.yiv5204526202emailstyle231 {color:windowtext;}#yiv5204526202 
span.yiv5204526202ydp811169beskimlinks-unlinked {}#yiv5204526202 
span.yiv5204526202EmailStyle32 {color:windowtext;}#yiv5204526202 
.yiv5204526202MsoChpDefault {font-size:10.0pt;} _filtered #yiv5204526202 
{margin:1.0in 1.0in 1.0in 1.0in;}#yiv5204526202 div.yiv5204526202WordSection1 
{}#yiv5204526202 
You’ll have to piece the non-JNLP stuff together yourself, but I looked at my 
config and the JNLP I changed does not have http:// in it.  With this module, 
you are doing a dumb string replace anywhere you see that pattern in a response 
body.  So, you should probably put that in a location block (to avoid 
processing all the unrelated content) , and then look at that particular JNLP 
file with wget or something, to make sure you are doing the replace on the 
correct string, much like if you were doing a perl/sed text substitution from a 
command line.  You might also need to use 
FilterDeclare/FilterProver/FilterChain to get your request to mod_substitute, 
or that might just be an optimization we did.
 
  
 
Good luck.
 
  
 
  
 
Rick Houser
 
Web Engineer
 
  
 
From: kiran kumar [mailto:kiranchoudar...@yahoo.co.in]
Sent: Thursday, January 25, 2018 10:36
To: Houser, Rick ; users@httpd.apache.org
Subject: Re: RE: [users@httpd] Apache ReverseProxy for JavaWebStart Application.
 
  
 
EXTERNAL EMAIL


 
Thanks Rick for your reply.
 
  
 
I am trying to understand your reply.
 
  
 
The JNLP file that generates dynamically when we launch the client has some 
urls for the same java web start application, those urls s

RE: RE: [users@httpd] Apache ReverseProxy for JavaWebStart Application.

2018-01-25 Thread Houser, Rick
You’ll have to piece the non-JNLP stuff together yourself, but I looked at my 
config and the JNLP I changed does not have http:// in it.  With this module, 
you are doing a dumb string replace anywhere you see that pattern in a response 
body.  So, you should probably put that in a location block (to avoid 
processing all the unrelated content) , and then look at that particular JNLP 
file with wget or something, to make sure you are doing the replace on the 
correct string, much like if you were doing a perl/sed text substitution from a 
command line.  You might also need to use 
FilterDeclare/FilterProver/FilterChain to get your request to mod_substitute, 
or that might just be an optimization we did.

Good luck.


Rick Houser
Web Engineer

From: kiran kumar [mailto:kiranchoudar...@yahoo.co.in]
Sent: Thursday, January 25, 2018 10:36
To: Houser, Rick ; users@httpd.apache.org
Subject: Re: RE: [users@httpd] Apache ReverseProxy for JavaWebStart Application.

EXTERNAL EMAIL

Thanks Rick for your reply.

I am trying to understand your reply.

The JNLP file that generates dynamically when we launch the client has some 
urls for the same java web start application, those urls should be the apache 
url's instead of the application server urls which is not happening when the 
JNLP file generated dyamically.

As i mentioned in my first email, if i use the ProxyPreserveHost ON, then the 
generated JNLP file has the apache host name urls, this way it works, but the 
other problem i have is, the third party applications that are reverse proxied 
in the same virtual host configuration are not working because of 
ProxyPreserveHost.

So, are you saying that we should be able to achieve this using mod_substitute 
module to tell JNLP to send traffic back to Apache on the fly without using the 
ProxyPreserveHost turned ON?

I have given a try as as shown below, but the generated JNLP is starting the 
application with the application server url. Please see the screen shot 
attached.




Servername public.example.com
ProxyRequests Off
ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”
ProxyPassReverse “/ServicesWeb”  “http://localhost:8080/ServicesWeb”
Substitute 
"s|http://localhost:8080/ServicesWeb/|http://tenant4.fico.com:85/ServicesWeb/|i"


[Inline image]


Please help me on this, i am new comer to apache and i need your expertise to 
solve the issue.


Thanks
Kiran

On Thursday 25 January 2018, 9:23:42 AM GMT-5, Houser, Rick 
mailto:rick.hou...@jackson.com>> wrote:



It sounds like the client is never sending the traffic to Apache (per the 
JNLP), so you aren’t able to touch it until you first tell the client to send 
it there.  You can either serve that file statically with the changes already 
present, or use mod_substitute to modify it on the fly.





Rick Houser

Web Engineer



From: kiran kumar [mailto:kiranchoudar...@yahoo.co.in.INVALID]
Sent: Wednesday, January 24, 2018 17:42
To: users@httpd.apache.org
Subject: [users@httpd] Apache ReverseProxy for JavaWebStart Application.



EXTERNAL EMAIL

Hi,



I have java web start application running in my Jboss Application server.



I have configured the reverse proxy configuration for my JavaWeb start 
application as shown below.



Servername public.example.com
ProxyRequests Off

ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”
ProxyPassReverse “/ServicesWeb”  “http://localhost:8080/ServicesWeb”







I see that my web start application is not getting proxied and the JNLP file 
launched the application using my application server host name and port. But 
the other web applications which are running in the same Jboss application 
server JVM instance are getting proxied and the urls are always the apache urls.



How should i achieve to make it reverse proxied to the apache for my java web 
start application. ? I heard that there is a directive called ProxyPreserveHost 
to be turned ON will help the Java web start application to proxy, but there 
are issues with this where if there are any ReverseProxy configurations for 
third party applications in the same VirtualHost, those applications are not 
getting proxied and giving 404 errors.



Please provide the details how i could achieve.



Thanks

Kiran






Re: RE: [users@httpd] Apache ReverseProxy for JavaWebStart Application.

2018-01-25 Thread kiran kumar

This is the actual configuration that i have tried
 
Servername public.example.com
ProxyRequests Off
ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”ProxyPassReverse “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”Substitute 
"s|http://localhost:8080/ServicesWeb/|http://public.example.com:85/ServicesWeb/|i"


 ThanksKiran

On Thursday 25 January 2018, 10:40:51 AM GMT-5, kiran kumar 
 wrote:  
 
 Thanks Rick for your reply. 
I am trying to understand your reply.

The JNLP file that generates dynamically when we launch the client has some 
urls for the same java web start application, those urls should be the apache 
url's instead of the application server urls which is not happening when the 
JNLP file generated dyamically. 
As i mentioned in my first email, if i use the ProxyPreserveHost ON, then the 
generated JNLP file has the apache host name urls, this way it works, but the 
other problem i have is, the third party applications that are reverse proxied 
in the same virtual host configuration are not working because of 
ProxyPreserveHost. 
So, are you saying that we should be able to achieve this using mod_substitute 
module to tell JNLP to send traffic back to Apache on the fly without using the 
ProxyPreserveHost turned ON?
I have given a try as as shown below, but the generated JNLP is starting the 
application with the application server url. Please see the screen shot 
attached.


 
Servername public.example.com
ProxyRequests Off
ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”ProxyPassReverse “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”Substitute 
"s|http://localhost:8080/ServicesWeb/|http://tenant4.fico.com:85/ServicesWeb/|i"




Please help me on this, i am new comer to apache and i need your expertise to 
solve the issue. 


ThanksKiran

On Thursday 25 January 2018, 9:23:42 AM GMT-5, Houser, Rick 
 wrote:  
 
 #yiv5005007173 -- filtered {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 
4;}#yiv5005007173 filtered {panose-1:2 4 5 3 5 4 6 3 2 4;}#yiv5005007173 
filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv5005007173 
p.yiv5005007173MsoNormal, #yiv5005007173 li.yiv5005007173MsoNormal, 
#yiv5005007173 div.yiv5005007173MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv5005007173 a:link, 
#yiv5005007173 span.yiv5005007173MsoHyperlink 
{color:#0563C1;text-decoration:underline;}#yiv5005007173 a:visited, 
#yiv5005007173 span.yiv5005007173MsoHyperlinkFollowed 
{color:#954F72;text-decoration:underline;}#yiv5005007173 
p.yiv5005007173msonormal0, #yiv5005007173 li.yiv5005007173msonormal0, 
#yiv5005007173 div.yiv5005007173msonormal0 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv5005007173 
span.yiv5005007173ydp811169beskimlinks-unlinked {}#yiv5005007173 
span.yiv5005007173EmailStyle23 {color:windowtext;}#yiv5005007173 
.yiv5005007173MsoChpDefault {font-size:10.0pt;}#yiv5005007173 filtered 
{margin:1.0in 1.0in 1.0in 1.0in;}#yiv5005007173 div.yiv5005007173WordSection1 
{}#yiv5005007173 
It sounds like the client is never sending the traffic to Apache (per the 
JNLP), so you aren’t able to touch it until you first tell the client to send 
it there.  You can either serve that file statically with the changes already 
present, or use mod_substitute to modify it on the fly.
 
  
 
  
 
Rick Houser
 
Web Engineer
 
  
 
From: kiran kumar [mailto:kiranchoudar...@yahoo.co.in.INVALID]
Sent: Wednesday, January 24, 2018 17:42
To: users@httpd.apache.org
Subject: [users@httpd] Apache ReverseProxy for JavaWebStart Application.
 
  
 
EXTERNAL EMAIL


 
Hi,
 
  
 
I have java web start application running in my Jboss Application server.
 
  
 
I have configured the reverse proxy configuration for my JavaWeb start 
application as shown below.
 

 
Servername public.example.com
ProxyRequests Off
 
ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”
ProxyPassReverse “/ServicesWeb”  “http://localhost:8080/ServicesWeb”
 

 
  
 
  
 
I see that my web start application is not getting proxied and the JNLP file 
launched the application using my application server host name and port. But 
the other web applications which are running in the same Jboss application 
server JVM instance are getting proxied and the urls are always the apache urls.
 
  
 
How should i achieve to make it reverse proxied to the apache for my java web 
start application. ? I heard that there is a directive called ProxyPreserveHost 
to be turned ON will help the Java web start application to proxy, but there 
are issues with this where if there are any ReverseProxy configurations for 
third party applications in the same VirtualHost, those applications are not 
getting proxied and giving 404 errors.
 
  
 
Please provide the details how i could achieve.
 
  
 
Thanks
 
Kiran
 
  
 
  
   
-
To unsubscribe, e-mail

Re: RE: [users@httpd] Apache ReverseProxy for JavaWebStart Application.

2018-01-25 Thread kiran kumar
Thanks Rick for your reply. 
I am trying to understand your reply.

The JNLP file that generates dynamically when we launch the client has some 
urls for the same java web start application, those urls should be the apache 
url's instead of the application server urls which is not happening when the 
JNLP file generated dyamically. 
As i mentioned in my first email, if i use the ProxyPreserveHost ON, then the 
generated JNLP file has the apache host name urls, this way it works, but the 
other problem i have is, the third party applications that are reverse proxied 
in the same virtual host configuration are not working because of 
ProxyPreserveHost. 
So, are you saying that we should be able to achieve this using mod_substitute 
module to tell JNLP to send traffic back to Apache on the fly without using the 
ProxyPreserveHost turned ON?
I have given a try as as shown below, but the generated JNLP is starting the 
application with the application server url. Please see the screen shot 
attached.


 
Servername public.example.com
ProxyRequests Off
ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”ProxyPassReverse “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”Substitute 
"s|http://localhost:8080/ServicesWeb/|http://tenant4.fico.com:85/ServicesWeb/|i"




Please help me on this, i am new comer to apache and i need your expertise to 
solve the issue. 


ThanksKiran

On Thursday 25 January 2018, 9:23:42 AM GMT-5, Houser, Rick 
 wrote:  
 
 #yiv3244236353 #yiv3244236353 -- _filtered #yiv3244236353 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv3244236353 
{panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv3244236353 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv3244236353 
#yiv3244236353 p.yiv3244236353MsoNormal, #yiv3244236353 
li.yiv3244236353MsoNormal, #yiv3244236353 div.yiv3244236353MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv3244236353 a:link, 
#yiv3244236353 span.yiv3244236353MsoHyperlink 
{color:#0563C1;text-decoration:underline;}#yiv3244236353 a:visited, 
#yiv3244236353 span.yiv3244236353MsoHyperlinkFollowed 
{color:#954F72;text-decoration:underline;}#yiv3244236353 
p.yiv3244236353msonormal0, #yiv3244236353 li.yiv3244236353msonormal0, 
#yiv3244236353 div.yiv3244236353msonormal0 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv3244236353 
span.yiv3244236353ydp811169beskimlinks-unlinked {}#yiv3244236353 
span.yiv3244236353EmailStyle23 {color:windowtext;}#yiv3244236353 
.yiv3244236353MsoChpDefault {font-size:10.0pt;} _filtered #yiv3244236353 
{margin:1.0in 1.0in 1.0in 1.0in;}#yiv3244236353 div.yiv3244236353WordSection1 
{}#yiv3244236353 
It sounds like the client is never sending the traffic to Apache (per the 
JNLP), so you aren’t able to touch it until you first tell the client to send 
it there.  You can either serve that file statically with the changes already 
present, or use mod_substitute to modify it on the fly.
 
  
 
  
 
Rick Houser
 
Web Engineer
 
  
 
From: kiran kumar [mailto:kiranchoudar...@yahoo.co.in.INVALID]
Sent: Wednesday, January 24, 2018 17:42
To: users@httpd.apache.org
Subject: [users@httpd] Apache ReverseProxy for JavaWebStart Application.
 
  
 
EXTERNAL EMAIL


 
Hi,
 
  
 
I have java web start application running in my Jboss Application server.
 
  
 
I have configured the reverse proxy configuration for my JavaWeb start 
application as shown below.
 

 
Servername public.example.com
ProxyRequests Off
 
ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”
ProxyPassReverse “/ServicesWeb”  “http://localhost:8080/ServicesWeb”
 

 
  
 
  
 
I see that my web start application is not getting proxied and the JNLP file 
launched the application using my application server host name and port. But 
the other web applications which are running in the same Jboss application 
server JVM instance are getting proxied and the urls are always the apache urls.
 
  
 
How should i achieve to make it reverse proxied to the apache for my java web 
start application. ? I heard that there is a directive called ProxyPreserveHost 
to be turned ON will help the Java web start application to proxy, but there 
are issues with this where if there are any ReverseProxy configurations for 
third party applications in the same VirtualHost, those applications are not 
getting proxied and giving 404 errors.
 
  
 
Please provide the details how i could achieve.
 
  
 
Thanks
 
Kiran
 
  
 
  
   
-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: RE: [users@httpd] Apache ReverseProxy for JavaWebStart Application.

2018-01-25 Thread kiran kumar

Thanks Rick for your reply. 
I am trying to understand your reply.

The JNLP file that generates dynamically when we launch the client has some 
urls for the same java web start application, those urls should be the apache 
url's instead of the application server urls which is not happening when the 
JNLP file generated dyamically. 
As i mentioned in my first email, if i use the ProxyPreserveHost ON, then the 
generated JNLP file has the apache host name urls, this way it works, but the 
other problem i have is, the third party applications that are reverse proxied 
in the same virtual host configuration are not working because of 
ProxyPreserveHost. 
So, are you saying that we should be able to achieve this using mod_substitute 
module to tell JNLP to send traffic back to Apache on the fly without using the 
ProxyPreserveHost turned ON?
Please update me on this.


 

On Thursday 25 January 2018, 9:23:42 AM GMT-5, Houser, Rick 
 wrote:  
 
 #yiv3244236353 #yiv3244236353 -- _filtered #yiv3244236353 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv3244236353 
{panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv3244236353 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv3244236353 
#yiv3244236353 p.yiv3244236353MsoNormal, #yiv3244236353 
li.yiv3244236353MsoNormal, #yiv3244236353 div.yiv3244236353MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv3244236353 a:link, 
#yiv3244236353 span.yiv3244236353MsoHyperlink 
{color:#0563C1;text-decoration:underline;}#yiv3244236353 a:visited, 
#yiv3244236353 span.yiv3244236353MsoHyperlinkFollowed 
{color:#954F72;text-decoration:underline;}#yiv3244236353 
p.yiv3244236353msonormal0, #yiv3244236353 li.yiv3244236353msonormal0, 
#yiv3244236353 div.yiv3244236353msonormal0 
{margin-right:0in;margin-left:0in;font-size:11.0pt;}#yiv3244236353 
span.yiv3244236353ydp811169beskimlinks-unlinked {}#yiv3244236353 
span.yiv3244236353EmailStyle23 {color:windowtext;}#yiv3244236353 
.yiv3244236353MsoChpDefault {font-size:10.0pt;} _filtered #yiv3244236353 
{margin:1.0in 1.0in 1.0in 1.0in;}#yiv3244236353 div.yiv3244236353WordSection1 
{}#yiv3244236353 
It sounds like the client is never sending the traffic to Apache (per the 
JNLP), so you aren’t able to touch it until you first tell the client to send 
it there.  You can either serve that file statically with the changes already 
present, or use mod_substitute to modify it on the fly.
 
  
 
  
 
Rick Houser
 
Web Engineer
 
  
 
From: kiran kumar [mailto:kiranchoudar...@yahoo.co.in.INVALID]
Sent: Wednesday, January 24, 2018 17:42
To: users@httpd.apache.org
Subject: [users@httpd] Apache ReverseProxy for JavaWebStart Application.
 
  
 
EXTERNAL EMAIL


 
Hi,
 
  
 
I have java web start application running in my Jboss Application server.
 
  
 
I have configured the reverse proxy configuration for my JavaWeb start 
application as shown below.
 

 
Servername public.example.com
ProxyRequests Off
 
ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”
ProxyPassReverse “/ServicesWeb”  “http://localhost:8080/ServicesWeb”
 

 
  
 
  
 
I see that my web start application is not getting proxied and the JNLP file 
launched the application using my application server host name and port. But 
the other web applications which are running in the same Jboss application 
server JVM instance are getting proxied and the urls are always the apache urls.
 
  
 
How should i achieve to make it reverse proxied to the apache for my java web 
start application. ? I heard that there is a directive called ProxyPreserveHost 
to be turned ON will help the Java web start application to proxy, but there 
are issues with this where if there are any ReverseProxy configurations for 
third party applications in the same VirtualHost, those applications are not 
getting proxied and giving 404 errors.
 
  
 
Please provide the details how i could achieve.
 
  
 
Thanks
 
Kiran
 
  
 
  
   

RE: [users@httpd] Apache ReverseProxy for JavaWebStart Application.

2018-01-25 Thread Houser, Rick
It sounds like the client is never sending the traffic to Apache (per the 
JNLP), so you aren’t able to touch it until you first tell the client to send 
it there.  You can either serve that file statically with the changes already 
present, or use mod_substitute to modify it on the fly.


Rick Houser
Web Engineer

From: kiran kumar [mailto:kiranchoudar...@yahoo.co.in.INVALID]
Sent: Wednesday, January 24, 2018 17:42
To: users@httpd.apache.org
Subject: [users@httpd] Apache ReverseProxy for JavaWebStart Application.

EXTERNAL EMAIL

Hi,

I have java web start application running in my Jboss Application server.

I have configured the reverse proxy configuration for my JavaWeb start 
application as shown below.


Servername public.example.com
ProxyRequests Off

ProxyPass “/ServicesWeb”  
“http://localhost:8080/ServicesWeb”
ProxyPassReverse “/ServicesWeb”  “http://localhost:8080/ServicesWeb”



I see that my web start application is not getting proxied and the JNLP file 
launched the application using my application server host name and port. But 
the other web applications which are running in the same Jboss application 
server JVM instance are getting proxied and the urls are always the apache urls.

How should i achieve to make it reverse proxied to the apache for my java web 
start application. ? I heard that there is a directive called ProxyPreserveHost 
to be turned ON will help the Java web start application to proxy, but there 
are issues with this where if there are any ReverseProxy configurations for 
third party applications in the same VirtualHost, those applications are not 
getting proxied and giving 404 errors.

Please provide the details how i could achieve.

Thanks
Kiran




Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-25 Thread Daniel
I'm with Luca here.

A simple redirectmatch would do what you seek.
RedirectMatch ^/deptblogs/$  http://intranet/template_departments.cfm

Let PHP do complex stuff and let requests for simple paths be handled
with simple httpd directives, or at least, that's why I would do to
not lose hair in the process :)

If you have an .htaccess in place like seems to be the case, then
perhaps this should be the first line after the RewriteBase:
RewriteRule ^/deptblogs/$  http://intranet/template_departments.cfm [R,L]

This is the same as the redirectmatch but with a rewriterule and
defined the first to make sure it takes precedence over the
complicated directives later on.

2018-01-25 9:07 GMT+01:00 Marat Khalili :
> On 24/01/18 22:53, Kory Wheatley wrote:
>
> Ya there is a .htaccess that has the base set to deptblogs what could I
> change in here to get it to work?
>
> [kwheatley@sftpface2 wordpress]$ cat .htaccess
> RewriteEngine On
> RewriteBase /deptblogs/
> RewriteRule ^index\.php$ - [L]
>
> # uploaded files
> RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2
> [L]
>
> # add a trailing slash to /wp-admin
> RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
>
> RewriteCond %{REQUEST_FILENAME} -f [OR]
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteRule ^ - [L]
> RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
> RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
> RewriteRule . index.php [L]
> #Redirect 301 / http://intranet/template_departments.cfm
>
>
> This looks too complex for me to interpret for sure without real-world
> tests, particularly, because [L] in .htaccess context does not actually end
> rewriting like one might though. (If you really want to be sure no redirect
> is already in progress, test REDIRECT_STATUS environment variable like this:
>
> RewriteCond %{ENV:REDIRECT_STATUS} ^$
>
> .)
>
> Looks like you have added some rules while trying to solve your problem,
> while rest came from default Wordpress installation. I'd leave only default
> Wordpress ones and see if it solves unnecessary redirects.
>
> --
>
> With Best Regards,
> Marat Khalili



-- 
Daniel Ferradal
IT Specialist

email dferradal at gmail.com
linkedin es.linkedin.com/in/danielferradal

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



Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-25 Thread Marat Khalili

On 24/01/18 22:53, Kory Wheatley wrote:
Ya there is a .htaccess that has the base set to deptblogs what could 
I change in here to get it to work?


[kwheatley@sftpface2 wordpress]$ cat .htaccess
RewriteEngine On
RewriteBase /deptblogs/
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) 
wp-includes/ms-files.php?file=$2 [L]


# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
#Redirect 301 / http://intranet/template_departments.cfm


This looks too complex for me to interpret for sure without real-world 
tests, particularly, because [L] in .htaccess context does not actually 
end rewriting 
 like 
one might though. (If you really want to be sure no redirect is already 
in progress, test REDIRECT_STATUS environment variable like this:

RewriteCond %{ENV:REDIRECT_STATUS} ^$

.)

Looks like you have added some rules while trying to solve your problem, 
while rest came from default Wordpress installation. I'd leave only 
default Wordpress ones and see if it solves unnecessary redirects.


--

With Best Regards,
Marat Khalili