Apache2.2配置以及端口配置(笔记)

余额不足 2011-06-16

F:\work\php5.2

libmysql.dll文件

C:\WINDOWS\system32

注意

short_open_tag=Off

各种驱动

F:\work\instantclient_10_2;C:\ProgramFiles\StormII\Codec;C:\ProgramFiles\StormII;C:\ProgramFiles\SSHCommunicationsSecurity\SSHSecureShell

extension=php_mysql.dll

extension=php_oci8.dll

extension=php_soap.dll

去掉;

F:\work\apache2.2\conf

httpd.conf文件

#Listen12.34.56.78:80

Listen80

Listen81

<Directory"F:/work/apache2.2/htdocs">

#

#PossiblevaluesfortheOptionsdirectiveare"None","All",

#oranycombinationof:

#IndexesIncludesFollowSymLinksSymLinksifOwnerMatchExecCGIMultiViews

#

#Notethat"MultiViews"mustbenamed*explicitly*---"OptionsAll"

#doesn'tgiveittoyou.

#

#TheOptionsdirectiveisbothcomplicatedandimportant.Pleasesee

#http://httpd.apache.org/docs/2.2/mod/core.html#options

#formoreinformation.

#

OptionsIndexesFollowSymLinks

#

#AllowOverridecontrolswhatdirectivesmaybeplacedin.htaccessfiles.

#Itcanbe"All","None",oranycombinationofthekeywords:

#OptionsFileInfoAuthConfigLimit

#

AllowOverrideNone

#

#Controlswhocangetstufffromthisserver.

#

Orderallow,deny

Allowfromall

</Directory>

<Directory"F:/work/apache2.2/web">

#

#PossiblevaluesfortheOptionsdirectiveare"None","All",

#oranycombinationof:

#IndexesIncludesFollowSymLinksSymLinksifOwnerMatchExecCGIMultiViews

#

#Notethat"MultiViews"mustbenamed*explicitly*---"OptionsAll"

#doesn'tgiveittoyou.

#

#TheOptionsdirectiveisbothcomplicatedandimportant.Pleasesee

#http://httpd.apache.org/docs/2.2/mod/core.html#options

#formoreinformation.

#

OptionsIndexesFollowSymLinks

#

#AllowOverridecontrolswhatdirectivesmaybeplacedin.htaccessfiles.

#Itcanbe"All","None",oranycombinationofthekeywords:

#OptionsFileInfoAuthConfigLimit

#

AllowOverrideNone

#

#Controlswhocangetstufffromthisserver.

#

Orderallow,deny

Allowfromall

</Directory>

Includeconf/extra/httpd-vhosts.conf去掉注释

httpd-vhosts.conf文件

NameVirtualHost*:80

NameVirtualHost*:81

<VirtualHost*:81>

[email protected]

DocumentRoot"F:/work/apache2.2/web/"

ServerNamedummy-host.www.calendar.com

ServerAliaswww.dummy-host.www.calendar.com

ErrorLog"logs/dummy-host.www.calendar.com-error.log"

CustomLog"logs/dummy-host.www.calendar.com-access.log"common

</VirtualHost>

<VirtualHost*:80>

[email protected]

DocumentRoot"F:/work/apache2.2/htdocs/"

ServerNamedummy-host.www.calendar.com

ServerAliaswww.dummy-host.www.calendar.com

ErrorLog"logs/dummy-host.www.calendar.com-error.log"

CustomLog"logs/dummy-host.www.calendar.com-access.log"common

</VirtualHost>

相关推荐