2011年3月3日星期四

Re: virtual host in one ip address

-conf-path=/etc/nginx/nginx.conf


On Mar 4, 2011, at 9:31 , Alex H wrote:

configure arguments: --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-mail --with-mail_ssl_module --with-ipv6 --add-module=/build/buildd/nginx-0.7.65/modules/nginx-upstream-fair







From: igor@sysoev.ru
Date: Fri, 4 Mar 2011 09:21:10 +0300
To: nginx@nginx.org
Subject: Re: virtual host in one ip address


What does "nginx -V " show ?

On Mar 4, 2011, at 9:17 , Alex H wrote:

Where is this config file that I need to edit?






From: igor@sysoev.ru
Date: Fri, 4 Mar 2011 09:15:26 +0300
To: nginx@nginx.org
Subject: Re: virtual host in one ip address

On Mar 4, 2011, at 9:10 , Alex H wrote:

Is this on the default of the nginx.conf?

I do not know what do you mean by default. The whole configuration is like

http {
    server {
        location /v_host1/ {
        }
        location /v_host1/ {
        }
    }
}

That's all.

From: igor@sysoev.ru
Date: Fri, 4 Mar 2011 09:01:33 +0300
To: nginx@nginx.org
Subject: Re: virtual host in one ip address

On Mar 4, 2011, at 7:22 , Alex H wrote:


I have a rackspace server running with nginx. I am a newbie to all the server stuff. Let me explain the situation here:

  1. I have an IP address and I have two virtual host on my machine.
  2. I don't have a domain and I don't want to buy one
  3. I want to map it so I can access the website as xxx.xxx.xxx.xxx/v_host1 and xxx.xxx.xxx.xxx/v_host2

How can I do this the easy way? I am guessing I should change the nginx config of my site... but not sure which one to change.

server {
    location /v_host1/ {
        root /path/to/v_host1;
    }
    location /v_host2/ {
        root /path/to/v_host2;
    }



_______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginx_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx



_______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginx_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx



_______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginx_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx


--
Igor Sysoev
http://sysoev.ru/en/

没有评论:

发表评论