Created
          July 15, 2018 08:01 
        
      - 
      
 - 
        
Save florimondmanca/ec04c791d9379d0cdb1a5f8370b6d500 to your computer and use it in GitHub Desktop.  
    Simple Nginx configuration for serving an Angular build
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | server { | |
| listen 80; | |
| # server_name YOUR_SERVER_NAME; | |
| root /path/on/server/to/dist; | |
| index index.html index.htm; | |
| location / { | |
| try_files $uri $uri/ /index.html; | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment