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:

Listen 192.170.2.1:80

Listen 192.170.2.5:8000

 

- 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 192.170.2.1

NameVirtualHost 192.170.2.1:80

NameVirtualHost *

NameVirtualHost *:8080

 

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

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