Serveur Nginx

Liens

Activation des sites

Exemple liens symboliques

ln -s /etc/nginx/sites-available/monsite1.com.conf /etc/nginx/sites-enabled/monsite1.com.conf
ln -s /etc/nginx/sites-available/monsite2.com.conf /etc/nginx/sites-enabled/monsite2.com.conf

Reverse Proxy

upstream monsite2 {
server 192.168.56.103
}
server {
server_name monsite2.com;
   location / {
      proxy_pass http://monsite2;
      proxy_set_header    Host $host;
      
      proxy_connect_timeout 30;
      proxy_send_timeout 30;
  }
}