Apacheで使用するポート番号を変更する 「ポート番号を設定する」で解説したように、 Apache で使用するポート番号の指定は httpd.conf ファイルで指定します。デフォルトでは Listen ディレクティブを使って次のように80番が指定されています。 # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of 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 addres
![80番以外のポート番号を使用した場合のWebサーバへのアクセス](https://cdn-ak-scissors.b.st-hatena.com/image/square/58e65a1a01e562ca58d6a9a7f5d70a1e36d3ded8/height=288;version=1;width=512/https%3A%2F%2Fwww.javadrive.jp%2Fapache%2Finstall%2Fimg%2Fp6-0.png)