APACHE - Files - httpd.conf


- Info:

- This is Apache configuration file.

- This tutorial shows some of the most important parameters of httpd.conf.

- Each Network Card on your computer is called interface and each has its own IP address.


- Listen:

- Defines interface/port combinations on which Apache will be listening.

- Following lines define that apache will be listening on ports 80 and 8080:

Listen 80

Listen 8000

- Following lines define that on each interface Apache will be listening on specific port:




- NameVirtualHost:

- Defines interface/port combinations for which name based virtual hosting will be used as defined in httpd-vhosts.conf.

- Following interface/port combinations are possible:



NameVirtualHost *

NameVirtualHost *:8080


- DocumentRoot "/usr/local/apache2/htdocs":

- Defines root directory where you should put scripts of your Web Applications.