windows 2003下搭建nginx+apache
在windows 2003下成功让nginx以系统服务启动了之后,就有这个想法nginx在windows 2003下做前端缓存静态文件,让apache做后端处理php.因为以前做过apache反向代理,所以这次做起来还是很顺手.好了,看文章吧.
系统:windows 2003
ip:192.168.1.122
软件:nginx,apache,php,mysql
1.安装apache,php,mysql,nginx
这步我就不做了,没有什么意思,各位请自己去搜索安装教程.
2.修改apache和nginx的配置文件
apache的配置文件内容,就修改端口号和做个虚拟主机:
Listen 81
<VirtualHost 192.168.1.122:81>
ServerName 192.168.1.122:81
ServerAlias 192.168.1.122
DocumentRoot e:/svn
<Directory "e:/svn">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex admin_login.php index.php
</VirtualHost>
nginx的配置文件内容: