Skip to content

Commit

Permalink
chore(nginx): Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
muhuchah committed Aug 28, 2024
1 parent 175995a commit e99066f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
user nginx;
pid /var/run/nginx.pid;
worker_processes auto;
worker_processes 4;
worker_rlimit_nofile 65535;

# Load modules
Expand Down Expand Up @@ -37,7 +37,7 @@ http {
server {
listen 80;
listen [::]:80;
server_name negar-frontend.com;
server_name negar-frontend.abriment.com;
# root /var/www/negar-frontend.com/public;
root /usr/share/nginx/html;
index index.html
Expand Down Expand Up @@ -91,12 +91,4 @@ http {
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
}

# subdomains redirect
server {
listen 80;
listen [::]:80;
server_name *.negar-frontend.com;
return 301 http://negar-frontend.com$request_uri;
}
}

0 comments on commit e99066f

Please sign in to comment.