nginx config
This commit is contained in:
53
nginx/nginx.conf
Normal file
53
nginx/nginx.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
map $http_user_agent $is_browser {
|
||||
default 0;
|
||||
"~*Mozilla" 1;
|
||||
"~*Chrome" 1;
|
||||
"~*Safari" 1;
|
||||
"~*Firefox" 1;
|
||||
"~*Edge" 1;
|
||||
"~*Opera" 1;
|
||||
"~*Brave" 1;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /var/www/html;
|
||||
index index.html;
|
||||
|
||||
location = / {
|
||||
if ($is_browser = 1) {
|
||||
rewrite ^ /index.html break;
|
||||
}
|
||||
rewrite ^ /index.m3u break;
|
||||
}
|
||||
|
||||
location /tvm {
|
||||
include /etc/nginx/redirects/tvm.conf;
|
||||
}
|
||||
location /psmnews {
|
||||
include /etc/nginx/redirects/psmnews.conf;
|
||||
}
|
||||
location /yestv {
|
||||
include /etc/nginx/redirects/yestv.conf;
|
||||
}
|
||||
location /munaaru {
|
||||
include /etc/nginx/redirects/munaaru.conf;
|
||||
}
|
||||
location = /dhaaristv {
|
||||
include /etc/nginx/redirects/dhaaristv.conf;
|
||||
}
|
||||
location = /madhinalive {
|
||||
include /etc/nginx/redirects/madhinalive.conf;
|
||||
}
|
||||
location = /makkahlive {
|
||||
include /etc/nginx/redirects/makkahlive.conf;
|
||||
}
|
||||
location = /emanchannel {
|
||||
include /etc/nginx/redirects/emanchannel.conf;
|
||||
}
|
||||
location = /sangutv {
|
||||
include /etc/nginx/redirects/sangutv.conf;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user