Apache にある httpd.conf ファイルが失われました [closed] 質問する

Apache にある httpd.conf ファイルが失われました [closed] 質問する

ファイルの保存場所を見つけるにはどうすればよいですかhttpd.conf?

Amazon Web Services EC2 (Elastic Compute Cloud) から Ubuntu Linux サーバーを実行していますが、Apache 設定が見つかりません。

ベストアンサー1

実行中のApacheのパスを取得する

$ ps -ef | grep apache
apache   12846 14590  0 Oct20 ?        00:00:00 /usr/sbin/apache2

-Vパスに引数を追加する

$ /usr/sbin/apache2 -V | grep SERVER_CONFIG_FILE
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

参照:
http://commanigy.com/blog/2011/6/8/finding-apache-configuration-file-httpd-conf-location

おすすめ記事