Apacheのインストールと構成
15950 ワード
Apache
1、
Apache , 。 , 。 :
C:\Program Files\Apache Group\Apache\conf\httpd.conf
Apache , ( ) 。 , “#” 。
: 。
2、
:
#Listen 3000
#Listen 12.34.56.78:80
Apache IP 。 ,Apache IP 80 。
Port 80
Apache 。 80。
ServerName abc.meibu.com
Web 。 “Server Name” 。
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
。 “D:\myweb” , DocumentRoot “D:/myweb”。
Options Indexes FollowSymLinks MultiViews
, “Indexes” 。 。
DirectoryIndex index.html
。 ( http:// abc.meibu.com/) ,Apache 。
, 。
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
CGI 。
1、
:
<IfModule mod_alias.c>
:
Alias /vdir/ "c:/comexe/"
<Directory "c:/comexe/">
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
, http:// abc.meibu.com/vdir/, c:\comexe\ 。
Apache :“/icons/” “/manual/”。 , 。
2.
, ip(127.0.0.1 localhost) , 。 apache ip 。
: 127 ip , ip 。
: /apache2.2/conf/httpd.conf
1、Listen , , ip , :
Listen 80
2、 “NameVirtualHost”。
3、 : httpd.conf
<VirtualHost 127.0.0.2:80> <VirtualHost 127.0.0.3:80> ... |
4、然后相应的配置好各个目录属性,下面是一个目录属性的典型配置:
<Directory "d:/AppServ/www2"> <Directory "d:/AppServ/www3"> |
4. :“(OS 10013) 。 : make_sock: could not bind to address 0.0.0.0:80”
: 80 , /apache2.2/conf/httpd.conf 80 81 . 81 ,eg:
http://localhost:81/ http://127.0.0.1:81/
5. : ,
: apache; apache , , >services.msc> Apache2.2 。
:
1.Apache : 。 ,
, 。
2. , Apache 。
:
http://www.vvschool.cn/html/web/exchange/2010/0828/4245.html
http://blog.sina.com.cn/s/blog_830efbea0100y4e7.html
http://zhidao.baidu.com/question/68617752.html