Skip to content

Instantly share code, notes, and snippets.

@martip07
Created December 21, 2015 02:13
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 martip07/c178616edc8e32df4fe4 to your computer and use it in GitHub Desktop.
Save martip07/c178616edc8e32df4fe4 to your computer and use it in GitHub Desktop.
Configuración básica de NGINX
server {
listen 80;
server_name examle.com; #example.com es el nombre de dominio
root /ruta/de/mis/archivo; #/ruta/de/mis/archivo es la ubicación en la que se encuentran los archivos de nuestra web
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