We have 2 servers. One is old server and another is the new one. Currently we about doing a migration because the old server is not capable enough to handle everyday requests.
The specs are:
Old server
- Ubuntu 10.04
- Nginx as Reverse Proxy
- Apache WSGI
- Python/Django
New Server
- Ubuntu 10.04
- Nginx
- Gunicorn
- Python/Django
- Celery+Redis
Our manager asked us to research if the old server can perform multiple forwarding to all incoming request, for example, set Nginx of old server to forward all request to both old and new server. The purpose is to perform unit testing to new server using old server as comparer, see if the new server is ready to take over the role.
Please help, if there is an idea, or must install some engine, or what we do is impossible. Many thanks.
Currently my server configuration (old server) :
server {
listen *:80;
access_log /var/log/nginx/apps.access.log;error_log /var/log/nginx/apps.error.log;
location / {proxy_pass http://127.0.0.1:8081; include /etc/nginx/proxy.conf;
}
location /media/ {
root /var/www/media/; expires 24h;
}
}