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

211
Views
Reescribir o redirigir NGINX HTTPS a APACHE HTTP

¿Es posible reescribir o redirigir la URL HTTPS de NGINX a la URL HTTP de APACHE desde la solicitud del front-end? Mi sitio web usa el servidor web Nginx, pero todos los demás archivos están en el servidor de almacenamiento con Apache como servidor web. Siempre que haya alguna solicitud de archivos con cierto formato, se reescribirá en mydomain.com y su ruta. Esta configuración funciona con NGINX HTTP a APACHE HTTP, pero ahora, cuando se convierte en NGINX HTTPS, no funciona. No pude entender cuál es el problema aquí?

 log_format main '$remote_addr - $remote_user [$time_local] $status ' '$ssl_protocol/$ssl_cipher ' '"$request" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/www/html/access.log main; error_log /var/www/html/error.log; server { listen 443 ssl; server_name www.example.com; ssl_certificate /etc/ssl/certs/example.crt; ssl_certificate_key /etc/ssl/private/exacmple.key; root /var/www/html; index index.php index.html; location ~ (.*)\.pdf$ { rewrite ^(.*)$ http://mydomain.xy$1 redirect; } location ~ "^/photos/(.*)" { rewrite ^(.*)$ "http:/mydomain.xy$1" redirect; } location ~ (.*)\.xls$ { rewrite ^(.*)$ http://mydomain.xy$1 redirect; } location ~ (.*)\.zip$ { rewrite ^(.*)$ http://mydomain.xy$1 redirect; } location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { proxy_pass http://127.0.0.1:8080; } location ~ /\.ht { deny all; } } server { listen 80; server_name www.example.com; return 301 https://$host$request_uri; }
  • El sitio web está en k8s env mientras que el almacenamiento es un servidor externo, fuera de kubernetes. Todos los puertos han sido configurados y abiertos.
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!