
1.在配置文件httpd.conf(/etc/httpd/conf)中添加监听端口,如:Listen 8008 2.配置虚拟主机,如: ServerName test.com DocumentRoot /home/test/www DirectoryIndex index.php index.html AllowOverride all Require all granted 3.(注意防火墙)在iptables

我使用nginx作为apache服务器的前端.配置文件如下所示:upstream apache { server localhost:8000; } server { listen 80; error_page 503 /www/static/503.html; # need some magic here #