Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- events {
- worker_connections 8000;
- multi_accept on;
- }
- http {
- charset utf-8;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- access_log /dev/stdout;
- error_log /dev/stderr;
- server {
- listen 80 reuseport;
- listen [::]:80 reuseport;
- server_name .localhost;
- location / {
- default_type text/html;
- return 200 '<a href="http://app1.localhost">app1</a><br /><a href="http://app2.localhost">app2</a><br /><a href="http://app3.localhost">app3</a>';
- }
- }
- server {
- listen 80;
- listen [::]:80;
- server_name app1.localhost;
- location / {
- default_type text/html;
- return 200 'app1';
- }
- }
- server {
- listen 80;
- listen [::]:80;
- server_name app2.localhost;
- location / {
- default_type text/html;
- return 200 'app2';
- }
- }
- server {
- listen 80;
- listen [::]:80;
- server_name app3.localhost;
- location / {
- default_type text/html;
- return 200 'app3';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement