Skip to content

Commit

Permalink
nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
Z0lr3n committed Feb 15, 2024
1 parent a1115d5 commit c2a736d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions default
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;
}
}

0 comments on commit c2a736d

Please sign in to comment.