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

227
Views
Apache 2.4.43 está cambiando mi url "?" a "%3F"

Acabo de implementar Apache 2.4 y definí una etiqueta de host virtual para redirigir a una URL específica. El problema es que mi URL incluye un "?" y Apache lo cambia a "%3F". Aquí está mi etiqueta de configuración de host virtual real:

 <VirtualHost *:80> ServerName http://app2x.example.com RewriteEngine On ProxyRequests Off ProxyPreserveHost On ErrorLog "logs/app2x.example.com-error.log" CustomLog "logs/app2x.example.com.log" common ProxyPass /sib http://172.168.100.3:9097/sib/f?p=103:1 ProxyPassReverse /sib http://172.168.100.3:9097/sib/f?p=103:1 </VirtualHost>

como puede ver, hay un carácter " ? " en la URL, pero cuando lo pruebo, aparece el siguiente error:

 /sib/f%3Fp=103:1 start: 2020-04-21T17:37:53.992Z duration: 16ms URLMappingNotFoundException [statusCode=404, reasons=[The request could not be mapped to any database. Check the request URL is correct, and that URL to database mappings have been correctly configured]]

He probado con esta url:

 ProxyPass /sib http://172.168.100.3:9097/

y funciona bien, pero necesito redirigir a la URL completa que se muestra

Estoy usando Windows 2019 Server STD Edition 64 bits con Apache 2.4.43 y la URL a la que apunto está en otra máquina similar.

Soy nuevo usando Apache y no he encontrado una respuesta en Google para resolverlo, cualquier ayuda será apreciada. Gracias

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Acabo de solucionar mi problema (después de un par de días buscando en Google y probando), lo hice funcionar. Tengo que usar RewriteRule de la siguiente manera:

1.) mi archivo httpd-vhosts.conf se ve así:

 <VirtualHost *:80> ServerName http://app2x.example.com RewriteEngine On RewriteRule ^/sib$ sib/f?p=103:1 [R=301] # => everything that contains "/sib" redirect to url: "sib/f?p=103:1" RewriteRule ^/([a-zA-Z0-9]+)$ sib [R=301] # => everything that contains "/any letter or number" redirect it to sib, that, at same time, will redirect it to url: "sib/f?p=103:1" ProxyRequests Off # => so the server does not work as a normal proxy ProxyPreserveHost On # => important to keep url format from oracle apex server, if not, will display errors when using the app because apache will change the deeper url's ProxyPass / http://172.168.100.3:9097/ # => important do not forget this last "/" ProxyPassReverse / http://172.168.100.3:9097/ </VirtualHost>

2.) no olvide habilitar el modo de reescritura de línea en el archivo: httpd.conf , para que la configuración anterior pueda funcionar

 Enable this line => LoadModule rewrite_module modules/mod_rewrite.so

¡Eso es todo!, feliz codificación

Majv

over 4 years ago · Santiago Trujillo Report
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!