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

231
Views
¿Por qué apache2.conf no deniega el acceso al directorio especificado?

Tengo una autenticación definida en mi .htaccess en mi dominio dev pero quiero ponerla en apache2.conf en su lugar. Si trato de cortar/pegar las líneas, la autenticación deja de funcionar.

Esta es mi configuración para el directorio en cuestión:

 <Directory /home/dev> AllowOverride None <FilesMatch "^.*\.([Hh][Tt][AaPp])"> Require all denied </FilesMatch> #AuthType Basic #AuthName "Dev Domain" #AuthUserFile "/home/dev/public_html/.htpasswd" #Require all denied #Previously in .htaccess SetEnvIf Host dev.mywebsite.com auth AuthType Basic AuthName "Dev domain" AuthUserFile "/home/dev/public_html/.htpasswd" Require valid-user # first, allow everybody Order Allow,Deny Satisfy any Allow from all Require valid-user # then, deny only if required Deny from env=auth </Directory>

Cualquier forma de Require ( Require all denied , Require valid-user ) o Deny parece ser ignorada. Incluso AllowOverride None no funciona porque si coloco estas líneas en /home/dev/public_html/.htaccess , la autenticación funciona.

Sin embargo, RewriteRules funciona.

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!