既にapache2はインストール済みとします。
ポート設定
/etc/apache2/ports.conf
ファイルを修正することにより、デフォルトの80以外が設定できます。
Listen 8080
これで、http//(IPアドレス):8080 でアクセスできます。
共通のディレクトリ設定
/etc/apache2/conf.d/directory_settings
を作成。
<directory /> Options All # CGIを使えるように Options -Indexes # ディレクトリ一覧表示だけはしないように AllowOverride All # .htaccessで設定上書きできるように Order allow,deny allow from all # 全ホストからアクセス許可 </directory>
全てこちらのサイトをまるぱk・・・参考にしました。