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

295
Views
Regex en la condición If en la configuración de apache (vamos a cifrar la configuración para el certificado de renovación)

Estoy tratando de hacer que la renovación del certificado funcione. Supongo que con la nueva versión, vamos a cifrar buscará en http://[mondomain]/.well-known/acme-challenge/ ....

Entonces, en mis configuraciones de apache, en mi host virtual del puerto 80, quería poner una expresión regular que cuando existe el .well-known en la URI, no redirecciono mi virtualhost https para que encriptemos pueda hacer su desafío (yo probado y mi certificado está bien renovado cuando eliminé todas las redirecciones).

Especifico que el directorio /var/www/html/.well-known/acme-challenge existe en el servidor apache y que mi DNS está con el proveedor de DNS.

No entiendo por qué mi expresión regular no funciona.

Puedes ayudarme por favor ?

Aquí está la configuración de apache.

 <VirtualHost *:80> ServerName [Domain] ServerAlias [DomainWWW] DocumentRoot /var/www/html #Alias "/.well-known/acme-challenge/" "/var/www/html/.well-known/acme-challenge/ #RewriteEngine on #RewriteCond %{HTTPS} !on #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} <If "%{REQUEST_URI} !~ m#\.well-known\/acme-challenge\/.*m#"> RewriteEngine on RewriteCond %{HTTPS} on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </If> </VirtualHost>

Gracias de antemano.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

La expresión regular estaba bien. Pude renovar el certificado. ¡Eso es bueno ahora! :)

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!