Check Conf File Error Apache

[Solved] Check Conf File Error Apache | Shell - Code Explorer | yomemimo.com
Question : check .conf file error apache

Answered by : rehman

Syntax check
To check configuration files for syntax errors:
# Red Hat-based (Fedora, CentOS), Arch-based and OSX
httpd -t
# Debian-based (Ubuntu)
apache2ctl -t
# MacOS
apachectl -t
-------------------------------------------------------
List virtual hosts
To list all virtual hosts, and their locations:
# Red Hat-based (Fedora, CentOS), Arch-based and OSX
httpd -S
# Debian-based (Ubuntu)
apache2ctl -S
# MacOS
apachectl -S

Source : https://stackoverflow.com/questions/5474477/how-to-debug-an-apache-virtual-host-configuration | Last Update : Thu, 28 Apr 22

Answers related to check conf file error apache

Code Explorer Popular Question For Shell