nginx virtualhosts

Cliff Wells cliff at develix.com
Wed Jan 9 02:24:15 MSK 2008


On Tue, 2008-01-08 at 17:12 +0100, Stefanita rares Dumitrescu wrote:

>     server {
>         listen       xx.xx.xx.xx:80;
>         server_name  host1.com;
>         #charset koi8-r;
>         access_log  logs/host1.com.access.log main;
>         location /data {
>             root /home/fs01/storage;
>             internal;
>             }
>         location / {
>             root   /home/fs01/www;
>             index  index.html index.htm index.php;
>         }
> 
>         location / {
>             proxy_pass        http://localhost:8000/;
>             proxy_redirect    off;
>             proxy_set_header  X-Forwarded-For
> $proxy_add_x_forwarded_for;
>             proxy_set_header  X-Real-IP  $remote_addr;
>             proxy_set_header  Host $http_host;
> 
>         }

     }

>     server {
>         listen       xx.xx.xx.xx:80;
>         server_name  host2.com;
>         #charset koi8-r;
>         access_log  logs/host2.com.access.log main;
>         location / {                


Cliff






More information about the nginx mailing list