MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: costa1988sv on 2013-02-19, 03:29:58

Title: Apache and Nginx
Post by: costa1988sv on 2013-02-19, 03:29:58
i have 4 ips and and want to have 2 ips with apache and one with nginx, on kloxo 6.1.*, i only modify httpd.conf " listen ip:80 " and only that ip will assign.

if i want to change apache settings what file i need to modify?
Title: Re: Apache and Nginx
Post by: costa1988sv on 2013-02-19, 17:46:55
i found out how to do

edit /home/apache/conf/defaults/init.conf
install nginx
edit /etc/nginx/nginx.conf

server
{
listen ip:80;
server_name static.example.com;
root /etc/nginx/html;
index index.php index.html index.htm;
}
Title: Re: Apache and Nginx
Post by: MRatWork on 2013-02-19, 18:09:36
Yes, it's possible because nginx use 'local/late listen' for ip and port. Different with apache and lighttpd where using 'global/early listen'