reddarien/webserver/nginx/sites-enabled/captive

52 lines
941 B
Plaintext
Raw Permalink Normal View History

2019-10-17 23:46:53 +00:00
#Este archivo de configuración hace que los celulares que se conecten a la red encuentren el portal captivo y crean que estan conectados a Internet
server {
listen 80;
server_name
clients3.google.com
clients.l.google.com
connectivitycheck.android.com
connectivitycheck.gstatic.com
play.googleapis.com
;
root /var/www/captive;
index index.html index.htm index.nginx-debian.html;
location /generate_204 {
return 204;
2019-10-20 17:34:18 +00:00
return 302 http://darien.nuestrared.org;
2019-10-17 23:46:53 +00:00
}
location / {
try_files $uri $uri/ =404;
}
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass 127.0.0.1:9000;
}
location ~ /\.ht {
deny all;
}
}
server {
server_name
apple.com
captive.apple.com;
listen 80;
root /var/www/captive;
location / {
try_files /index.html /index.html;
}
}