Last active
October 5, 2020 12:38
-
-
Save leandro-hermes/9ef191033e56bd9be28efe5239d5dd80 to your computer and use it in GitHub Desktop.
Configuração simples de vhost nginx
This file contains 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 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