1.配置PHP支持
# Begin PHP Configure of PHPnow
LoadModule php5_module "D:/WebSite/php-5.4.22-Win32-VC9-x86/php5apache2_2.dll"
<IfModule mod_php5.c>
PHPINIDir "D:/WebSite/php-5.4.22-Win32-VC9-x86/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php5
</IfModule>
# End PHP Configure of PHPnow
2.配置网站
<VirtualHost 172.26.121.101:80>
ServerAdmin reddream@qq.com
DocumentRoot D:/WebSite/WebSystem
ServerName 172.26.121.101
ErrorLog D:/WebSite/WebSystem/error.log
CustomLog logs/dummy-host2.appservnetwork.com-access_log common
<Directory "D:/WebSite/WebSystem">
Options Indexes FollowSymLinks
AllowOverride Options FileInfo
order allow,deny
Allow from all
</Directory>
DirectoryIndex index.html index.htm index.php
</VirtualHost>
3.配置转发
<VirtualHost www.xxx.com:8080>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:8188/
ProxyPassReverse / http://localhost:8188/
</VirtualHost>
--=====================================================================================================
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Apache 配置实例
最新推荐文章于 2024-07-13 10:24:56 发布