-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
server { | ||
#proxy_cache cache; | ||
#proxy_cache_valid 200 1s; | ||
listen 8080; | ||
listen [::]:8080; | ||
root /home/site/wwwroot/public; # Changed for Laravel | ||
index index.php index.html index.htm; | ||
server_name tclolyoapp.azurewebsites.net www.tclolyoapp.azurewebsites.net; | ||
port_in_redirect off; | ||
|
||
location / { | ||
index index.php index.html index.htm hostingstart.html; | ||
try_files $uri $uri/ /index.php?$args; # Changed for Laravel | ||
} | ||
|
||
# redirect server error pages to the static page /50x.html | ||
# | ||
#error_page 500 502 503 504 /50x.html; # Commented out for Laravel so that Laravel debug mode pages are shown | ||
location = /50x.html { | ||
root /html/; | ||
} | ||
|
||
# Disable .git directory | ||
location ~ /\.git { | ||
deny all; | ||
access_log off; | ||
log_not_found off; | ||
} | ||
} |