I want to use an other port, because under port 80 an other webserver is running
excerpt of my config:
events {
worker_connections 1024;
}
http {
server_names_hash_max_size 1024;
server_names_hash_bucket_size 512;
types_hash_bucket_size 64;
types_hash_max_size 2048;
include mime.types;
keepalive_timeout 5;
keepalive_requests 100;
log_format default '$remote_addr - $remote_user $time_local "$request" $status $body_bytes_sent';
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
error_page 404 http://meinedomain.de/nichtvorhanden.html;
server {
listen 123.456.789.123:1337;
server_name www.meinedomain.de meinedomain.de www.meinedomain2.de meinedomain2.de
allow all;
root /www/sites/meinedomain.de/htdocs;
}
}
(And many more server {} - entrys, with the same syntax for other domains but same ip respectively port)
excerpt of my config:
events {
worker_connections 1024;
}
http {
server_names_hash_max_size 1024;
server_names_hash_bucket_size 512;
types_hash_bucket_size 64;
types_hash_max_size 2048;
include mime.types;
keepalive_timeout 5;
keepalive_requests 100;
log_format default '$remote_addr - $remote_user $time_local "$request" $status $body_bytes_sent';
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
error_page 404 http://meinedomain.de/nichtvorhanden.html;
server {
listen 123.456.789.123:1337;
server_name www.meinedomain.de meinedomain.de www.meinedomain2.de meinedomain2.de
allow all;
root /www/sites/meinedomain.de/htdocs;
}
}
(And many more server {} - entrys, with the same syntax for other domains but same ip respectively port)