Webサーバの構築


***********************************
Apacheの起動と停止
***********************************
オプション 	操作
start		起動
stop		停止
restart		再起動
status		状況確認


***********************************
#/etc/rc.d/init.d/httpd start
***********************************
httpd.confの設定例
***********************************
viにてhttpd.confを編集

vi /etc/httpd/conf/httpd.conf

(ポートの変更:標準は80)
#
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
#
Port 80

(ドキュメントルート変更:標準は"/home/httpd/html")
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/home/httpd/html"

#
# This should be changed to whatever you set DocumentRoot to.
#
#