 |
 |
システムインストール時に選んでいたのでインストール済みです。 |
|
【1】ROOT権限でテキストエディター(GEDIT)を立ち上げます。 |
|
【2】”/etc/httpd/conf/httpd.conf” を開きます。 ※www(apache,httpd)サーバーのファイル配置参照
|
 |
|
【3】以下の箇所を修正します。 |
|
【80(HTTP)ポートでアクセスするIPアドレスを設定します。】 |
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
#Listen 80 -- change 2009/12/12 --
Listen 192.168.11.21:80
|
|
white:変更なし yellow:変更 green:追加 |
|
【メールアドレス、ドメイン名を設定します。】 |
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some
server-generated pages, such
# as error documents. e.g.
admin@your-domain.com
#
#-- change 2009/12/12 --
ServerAdmin kuwagatalive@live.jp
#
# ServerName gives the name and port that the server uses to identify
itself.
# This can often be determined automatically, but we recommend you
specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also
the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address
here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
#-- change 2009/12/12 --
ServerName www.kuwagatalive.mydns.jp:80
|
|
white:変更なし yellow:変更 green:追加 |
|
【ユーザー別の公開Directoryを設定します。】 |
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.
This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden"
message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
#
# UserDir is disabled by default
since it can confirm the presence
# of a username on the system
(depending on home directory
# permissions).
# --2009/12/12 commant
#UserDir disabled
#
# To enable requests to /~user/ to
serve the user's public_html
# directory, remove the "UserDir
disabled" line above, and uncomment
# the following line instead:
# ---2009/12/12 comment off
UserDir public_html
</IfModule>
#
# Control access to UserDir directories.
The following is an example
# for a site where these directories are restricted to read-only.
# ---200912/12/ Directory commant off
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig
Limit
Options MultiViews Indexes
SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST
OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
#
|
|
white:変更なし yellow:変更 green:追加 |
|
細かい設定は後で変更しますが、まずは動作確認を行います。 |
変更箇所には、日付とコメントを入れておいて下さい。 |
|
|
【4】サービスから”httpd”を有効、開始にします。※サービスの操作方法参照 |
|
【5】ブラウザーを立ち上げる為に をクリックします。 |
|
|
【6】”http://192.168.11.21/”とアドレスでアクセスします。 |
以下のようにAPACHE2.2が表示されれば完了です。 |
|
|
初期値で立ち上げると簡単ですね。 |
TOMCATとも連携する時に修正しますので導入確認はこの程度です。 |
|
  |