Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a dedicated server and one of the options is that I get up to 7 unique IPs if I need them. Lately I've been thinking about setting up Nginx and PHP-FPM as practice, and running my blog on it. I wouldn't want to break my existing sites, so I'm wondering if I can run them both on port 80 but bind them to different IPs, then change my blog A records to point to the second IP.

Thanks

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

Yes you can and it probably involves less typing than your question.

In nginx:

listen 192.168.0.1:80;

In Apache:

Listen 192.168.0.2:80
share|improve this answer
    
Well that was easy :| –  Brandon Wamboldt Jun 17 '12 at 22:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.