Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
Redirección/reescritura de Apache al servidor ShinyProxy

Operamos un servidor Shiny y un servidor ShinyProxy detrás de un servidor Apache. Nos gustaría hacer accesible una aplicación de servidor ShinyProxy bajo la URL my.domain.com/app/app2

La aplicación del servidor ShinyProxy está disponible en el servidor en el puerto 8080 (localhost: 8080)

Las otras aplicaciones Shiny (no ShinyProxy) aún deberían estar disponibles en la URL my.domain.com/app1, my.domain.com/app2, my.domain.com/appN

El servidor Shiny normal se ejecuta en el puerto 3838 (localhost:3838)

Estamos luchando por encontrar las reglas de reescritura de Apache correctas para lograr lo siguiente:

my.domain.com/app1 -> localhost:3838 (servidor Shiny)

y

my.domain.com/app/app2 -> localhost:8080 (servidor ShinyProxy)

El armario que obtuvimos fue el con las siguientes condiciones

 RewriteRule /pscapp/(.*) ws://localhost:3838/$1 [P,L] RewriteCond %{​​​​​HTTP:Upgrade}​​​​​ !=websocket RewriteRule /pscapp/(.*) http://localhost:3838/$1 [P,L] ProxyPass /pacapp http://localhost:3838/ retry=1 acquire=3000 timeout=600 Keepalive=On ProxyPassReverse /pscapp http://localhost:3838/ #ProxyRequests Off #RewriteCond /app !-f RewriteCond %{​​​​​HTTP:Upgrade}​​​​​ =websocket RewriteRule /app/(.*) ws://localhost:8080/$1 [P,L] RewriteCond %{​​​​​HTTP:Upgrade}​​​​​ !=websocket RewriteRule /app/(.*) http://localhost:8080/$1 [P,L] ProxyPass /app/ http://localhost:8080/ retry=1 acquire=3000 timeout=600 Keepalive=On ProxyPassReverse /app/(.*) http://localhost:8080/app/(.*) ProxyRequests Off

Cuando hemos reiniciado httpd, el bit del servidor Shiny funciona bien. Pero el bit ShinyProxy solo mostró un pequeño contenido y luego se atascó, es decir:

acceder a https://my.domain.com/app1 funciona bien

Al acceder a https://my.domain.com/app/app2 , se inició el contenedor de la ventana acoplable ShinyProxy, pero la aplicación no estaba presente en el navegador.

¿Tiene alguna idea de cómo podemos lograr esto y qué está mal?

Saludos Cheng

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!