[Nanya] setting multi IP dan multi domain
December 18, 2010 12:47AM
halo semuanya,

jika kita punya beberapa IP bagaimana konfig nginx supaya tiap domain punya IP nya sendiri seperti contoh:
domain1.com => 1.1.1.1
domain2.com => 2.2..2.2
domain3.com => 3.3.3.3

makasih
Re: [Nanya] setting multi IP dan multi domain
December 18, 2010 09:12AM
server {
limit_conn myzone 10;
listen 1.1.1.1:80;
autoindex on;
server_name domain1.com;
location / {
root /home/domain1/public_html;
index index.html index.htm;
}
}
server {
limit_conn myzone 10;
listen 2.2.2.2:80;
autoindex on;
server_name domain2.com;
location / {
root /home/domain2/public_html;
index index.html index.htm;
}
}
server {
limit_conn myzone 10;
listen 3.3.3.3:80;
autoindex on;
server_name domain3.com;
location / {
root /home/domain3/public_html;
index index.html index.htm;
}
}
Re: [Nanya] setting multi IP dan multi domain
December 19, 2010 04:10AM
makasih kang teguh nnti ane coba dulu
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready