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

127
Views
Ajax GET para el contenido de error_log funciona localmente pero devuelve 403 en el servidor

Tengo ese pequeño script:

 <script> $( document ).ready(function() { $('button').on('click', function(event, state) { var path = $(this).data("path"); console.log(path); $.ajax({ type:"GET", url: path, dataType: 'text', contentType: 'text', async: true, success: function (data) { $("#file-content").text(data); } }); }); }); </script>

y la parte HTML es:

 <button type="button" class="btn btn-primary" data-path="/error_log">error_log</button> <button type="button" class="btn btn-primary" data-path="/log.txt">log.txt</button> <div id="file-content" style="white-space: pre-line;"></div>

Ese código funciona perfectamente en mi Macbook, ejecutando apache localmente. Pero una vez cargado en mi servidor, la carga de /log.txt funciona perfectamente PERO cargar el archivo error_log devuelve el error 403. Revisé los permisos en esos archivos y son exactamente los mismos permisos:

 -rw-r--r--. 1 XXXXXXXXX XXXXXXXXX 1000 14 aoû 23:00 error_log -rw-r--r--. 1 XXXXXXXXX XXXXXXXXX 6032 16 aoû 09:55 log.txt

No puedo resolver el problema. Usted me podría ayudar por favor ??

Saludos,

t

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!