On Wed, Jun 10, 2009 at 03:42:13PM +0200, Anton Kuznetsov wrote:
> Напасть какая-то.. Решил на новом сервере завернуть текущие вебы под нжинкс,
> т.к. сервер уже рабочий пробую начать делать конфиг с перевернутыми портами,
> рабочий веб - 80, нжинкс - что-то временное.
>
> # uname -a
> Linux ubuntu 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009
> x86_64 GNU/Linux
>
> # nginx -v
> nginx version: nginx/0.8.0
>
> Конфиг просто две строчки добавил:
>
> # more /etc/nginx/nginx.conf
> user www-data;
> worker_processes 1;
>
> error_log /var/log/nginx/error.log;
> pid /var/run/nginx.pid;
>
> events {
> worker_connections 1024;
> }
>
> http {
> include /etc/nginx/mime.types;
> default_type application/octet-stream;
>
> access_log /var/log/nginx/access.log;
>
> sendfile on;
> tcp_nopush on;
>
> directio 8m;
> keepalive_timeout 65;
> tcp_nodelay on;
>
> include /etc/nginx/conf.d/*.conf;
> include /etc/nginx/sites-enabled/*;
>
> server {
> listen 8888 default;
> server_name
demo.qq.com;
> location / {
> proxy_pass
http://127.0.0.1;
> }
> } #server 8888
>
> }# http
>
> Запускаем:
>
> # /etc/init.d/nginx start
> the configuration file /etc/nginx/nginx.conf syntax is ok
> configuration file /etc/nginx/nginx.conf test is successful
> Starting nginx: [emerg]: bind() to
0.0.0.0:80 failed (98: Address already in
> use)
> [emerg]: bind() to
0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to
0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to
0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to
0.0.0.0:80 failed (98: Address already in use)
> [emerg]: still could not bind()
> nginx.
>
> Какого ... ему надо от 80 порта??? Как его отвадить от этой любви по
> умолчанию?