Skip to content

Instantly share code, notes, and snippets.

@leandro-hermes
Last active October 5, 2020 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leandro-hermes/9ef191033e56bd9be28efe5239d5dd80 to your computer and use it in GitHub Desktop.
Save leandro-hermes/9ef191033e56bd9be28efe5239d5dd80 to your computer and use it in GitHub Desktop.
Configuração simples de vhost nginx
server {
listen 80;
server_name sub.domain.com;
root /var/www/path;
location / {
try_files $uri $uri/ /index.html?$query_string;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment