Skip to content

Commit

Permalink
Create .nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax authored Sep 7, 2024
1 parent 4eb0667 commit 39ce00d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
server {
listen 80;
listen [::]:80;
server_name docs.salamlang.ir;
root /var/www/html/docs.salamlang.ir;
index index.html index.htm;
error_log docs.salamlang.ir.error.log;
access_log docs.salamlang.ir.access.log;
location ~ ^/(fa|en)/ {
try_files $uri $uri/ /index.html?$query_string;
autoindex off;
}
location / {
try_files $uri $uri/ /index.html?$query_string;
}
location ~ /\. {
deny all;
}
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
}

0 comments on commit 39ce00d

Please sign in to comment.