728x90
반응형
httpd.conf 찾는법
httpd -V | egrep "(HTTPD\_ROOT|SERVER\_CONFIG\_FILE)"
에러로그 위치 찾는법
grep ErrorLog {httpd.conf 파일 경로}
터미널(콘솔) 예시
$ httpd -V | egrep "(HTTPD\_ROOT|SERVER\_CONFIG\_FILE)"
아래와 같이 나온다.
-D HTTPD_ROOT="/usr/local/Cellar/httpd/2.4.46"
-D SERVER_CONFIG_FILE="/usr/local/etc/httpd/httpd.conf"
에러로그 찾는법은 아래와 같다.
$ grep ErrorLog /usr/local/etc/httpd/httpd.conf
결과는 아래와 같이 나온다.
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
ErrorLog "/usr/local/var/log/httpd/error_log"
brew 로 httpd.conf 찾는 법
brew info httpd 검색 후 httpd.conf 찾음
/usr/local/etc/httpd/httpd.conf
$ brew info httpd
==> httpd: stable 2.4.58 (bottled)
Apache HTTP server
https://httpd.apache.org/
/usr/local/Cellar/httpd/2.4.54_1 (1,662 files, 31.5MB) *
Poured from bottle on 2022-12-20 at 07:38:02
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/h/httpd.rb
License: Apache-2.0
==> Dependencies
Required: apr ✔, apr-util ✔, brotli ✔, libnghttp2 ✔, openssl@3 ✔, pcre2 ✔
==> Caveats
DocumentRoot is /usr/local/var/www.
The default ports have been set in /usr/local/etc/httpd/httpd.conf to 8080 and in
/usr/local/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.
To restart httpd after an upgrade:
brew services restart httpd
Or, if you don't want/need a background service you can just run:
/usr/local/opt/httpd/bin/httpd -D FOREGROUND
==> Analytics
install: 7,580 (30 days), 23,834 (90 days), 120,289 (365 days)
install-on-request: 6,181 (30 days), 19,822 (90 days), 100,439 (365 days)
build-error: 57 (30 days)
728x90
반응형
'mac os' 카테고리의 다른 글
mac에서 아파치 구동시 에러 (0) | 2020.06.24 |
---|---|
mac 아파치 시작/재시작 (0) | 2020.06.24 |
파일 내용 보는 linux command (0) | 2020.06.24 |
[macOS] 서버(DB, httpd) 관리툴 (0) | 2020.06.24 |
[macOS/Linux] 특정포트 확인 및 죽이기 (0) | 2020.06.24 |