2
web- Apache
Web- Apache
Web- ApacheApache-2.2.3-win32-x86-no_ssl.msi. , , Apache. , , : , . , localhost (. 2.1). (80 8080).
Localhost - , IP- 127.0.0.1, .
: (Typical) (Custom), . . ѻ C:\Servers\WebServer (. . 2.2).
. 2.1. | . 2.2. |
Install, . , Windows Apache (. . 2.3).
. 2.3. Windows
http://localhost/ http://127.0.0.1/ - .
Apache, , . Windows, Apache (. . 2.4). → → → → . , , Apache2. , , , .
. 2.4. Windows
Windows . , " " " ".
Apache
Web- . (). Apache httpd.conf conf. httpd.conf (. . 2.1).
|
|
. Apache PHP . UNIX Windows- . UNIX "/", /usr/bin/perl, Windows , , c:\Apachein. , Apache PHP : (/) (\), Apache PHP UNIX, "" , . (httpd.conf php.ini) UNIX "/". :
ScriptAlias "/php_dir/" "c:/php/"
2.1
httpd.conf
Port | TCP, Apache . 80 | Port 80 |
ServerAdmin | e-mail- web-, | ServerAdmin [email protected] |
ServerName | ServerName myserver | |
ServerRoot | , WEB- Apache | ServerRoot "C:/Servers/WebServer" |
DocumentRoot | , WEB- ( ) | DocumentRoot "C:/Servers/ WebServer/htdocs" |
DirectoryIndex | , (, http://localhost/test/) | DirectoryIndex index.html index.phtml index.php |
AddDefaultCharset | , HTML- ( KOI8-R) | AddDefaultCharset windows-1251 |
. . , , 8080, , : http://localhost:8080/.
<Directory />
DocumentRoot.
<Directory />
Options FollowSymLinks Includes Indexes
AllowOverride All
</Directory>
AllowOverride All httpd.conf .htaccess.
OptionsFollowSymLinks Apache .
OptionsIncludes SSI (ServerSideIncludes) web-.
OptionsIndexes , , .