Skip to content

Instantly share code, notes, and snippets.

View farzinft's full-sized avatar

Farzin Fthi farzinft

View GitHub Profile
server {
# Redirect any subdomain to the root domain
# to be captured by next server block
server_name *.example.com;
return 301 $scheme://example.com$request_uri;
}
server {
root /var/www;
index index.html index.htm;