searching example config for my setup

Jelle de Jong jelledejong at powercraft.nl
Thu May 19 01:28:26 MSD 2011


On 18-05-11 22:28, Jelle de Jong wrote:
> I am searching for an example configuration file for nginx for the
> follow set-up:

echo 'server {
    server_name a.example.org;
    location / {
        proxy_pass http://192.168.24.61/;
    }
}

server {
    server_name b.example.org;
    location / {
        proxy_pass http://192.168.24.62/;
    }
}

server {
    server_name c.example.org;
    location / {
        proxy_pass http://192.168.24.63/;
    }
}' | tee /etc/nginx/conf.d/02example.conf

Looking at several snippet I made the above config, it seems to partaly
do what I want... Is this the correct way (efficient/secure)?

Kind regards,

Jelle de Jong

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: OpenPGP digital signature
URL: <http://nginx.org/pipermail/nginx/attachments/20110518/4aee5a02/attachment.pgp>


More information about the nginx mailing list