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

328
Views
¿Cómo encuentro la raíz del documento en Homebrew Apache en MacOS-Mojave?

Mac OS X Mojave.

Estoy siguiendo las instrucciones en https://www.dionysopoulos.me/custom-apache-and-php-server-on-macos-the-definitive-2019-edition/

Llegó al punto justo antes de "Instalar MySQL".

El host local funciona con el archivo predeterminado de Apache que dice "¡Funciona!".

Traté de cambiar el archivo index.html para agregar un asterisco (antes de "It"). Todavía sirviendo el valor predeterminado.

Probé http://localhost/?2 para forzar la ausencia de caché. Todavía sirviendo por defecto.

Cambié el httpd.conf a la ubicación original /usr/local/var/www y coloqué el archivo index.html alterado allí. Todavía fracaso.

También intenté alterar /usr/local/Cellar/httpd/2.4.41_1/.bottle/var/www/index.html Todavía sirviendo el valor predeterminado.

¿Cómo averiguo desde dónde realmente está sirviendo Apache?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Asegúrese de que realmente está cambiando los archivos correctos para su instalación. Puede verificar la configuración actual de esta manera:

 brew info httpd

Lo anterior debería darle la ruta a la fórmula instalada y también debería mostrarle DocumentRoot, por ejemplo en mi caso:

 httpd: stable 2.4.46 (bottled) Apache HTTP server https://httpd.apache.org/ /usr/local/Cellar/httpd/2.4.46_2 (1,657 files, 31.4MB) * Poured from bottle on 2021-02-12 at 06:57:59 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/httpd.rb License: Apache-2.0 ==> Dependencies Required: apr ✔, apr-util ✔, brotli ✔, nghttp2 ✔, openssl@1.1 ✔, pcre ✔ ==> Caveats DocumentRoot is /usr/local/var/www.

Si lo anterior no funciona, también puede usar apachectl en el paquete httpd para obtener DocumentRoot:

 cd `brew --prefix httpd`/bin apachectl -D DUMP_RUN_CFG

Lo que te daría algo como esto:

 ServerRoot: "/usr/local/opt/httpd" Main DocumentRoot: "/usr/local/var/www" Main ErrorLog: "/usr/local/var/log/httpd/error_log" Mutex rewrite-map: using_defaults Mutex default: dir="/usr/local/var/run/httpd/" mechanism=default Mutex mpm-accept: using_defaults PidFile: "/usr/local/var/run/httpd/httpd.pid" Define: DUMP_RUN_CFG User: name="_www" id=70 not_used Group: name="_www" id=70 not_used

También puede mostrar su configuración actual de host virtual usando:

 apachectl -D DUMP_VHOSTS
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!