Options Indexes FollowSymLinks
DirectoryIndex index.php index.html index.htm
AllowOverride All
Order allow,deny
Allow from all
</Directory>
:
MIME . , PHP
( )
.php MIME
application/x-httpd-php.
AddType:
AddType application/x-httpd-php .php
:
httpd.conf Virtual Hosts. Web , Web . . <VirtualHost></VirtualHost> . . IP (IP-Based) (Name-Based). , IP . , IP . , HTTP - 1.1.
IP-Based :
<VirtualHost 172.17.68.222>
ServerName steve.ulala.com
DocumentRoot /home/www/public_html/steve
</VirtualHost>
<VirtualHost 172.17.68.223>
ServerName pola.ulala.com
DocumentRoot /home/www/public_html/pola
</VirtualHost>
IP . :
#ifconfig eth0:0 172.17.68.222
#ifconfig eth0:1 172.17.68.223
, DNS steve.ulala.com pola.ulala.com 172.17.68.222 172.17.68.223. - /etc/hosts:
172.17.68.222 steve.ulala.com
172.17.68.223 pola.ulala.com