Advertisement
Guest User

Nginx domain + subdomain in one config file

a guest
Dec 27th, 2013
1,435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.  
  4.     ...
  5.     index index.php index.php index.htm;
  6.  
  7.     server_name mydomain.com www.mydomain.com;
  8.   ...
  9. }
  10.  
  11. server {
  12.     listen 80;
  13.  
  14.     ...
  15.     index index.php index.php index.htm;
  16.  
  17.     server_name subdomain.mydomain.com www.subdomain.mydomain.com;
  18.   ...
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement