Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
if ($scheme != "https") {
rewrite ^ https://www.android-port.de$request_uri? permanent;
}
if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}
location /msd {
auth_basic "MSD";
auth_basic_user_file /pfad/.htpasswd;
}
location /tools {
auth_basic "Tools";
auth_basic_user_file /pfad/android-port.de/.htpasswd;
}
location /install {
auth_basic "Installation";
auth_basic_user_file /pfad/.htpasswd;
}
location /pfad/android-port.de/ {
try_files $uri $uri/ /pfad/android-port.de/index.php?$uri&$args;
index index.php index.html;
}
location /pfad/android-port.de/internal_data/ {
internal;
}
location /pfad/android-port.de/library/ {
internal;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
access_log off; # deaktiviert access_log für diese Dateitypen
log_not_found off; # deaktiviert Meldungen im error_log
add_header Pragma public;
add_header Cache-Control “public”;
try_files $uri @fallback;
expires 30d;
}
gzip on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_vary on;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
pagespeed EnableFilters combine_css;
pagespeed EnableFilters collapse_whitespace;
pagespeed EnableFilters make_google_analytics_async;
pagespeed EnableFilters canonicalize_javascript_libraries;
pagespeed EnableFilters remove_comments;
pagespeed EnableFilters rewrite_images;
pagespeed EnableFilters move_css_above_scripts;
pagespeed EnableFilters move_css_to_head;
pagespeed EnableFilters outline_css;
pagespeed CssOutlineMinBytes 3000;
fastcgi_read_timeout 300;
autoindex off;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 300;
fastcgi_send_timeout 180;
fastcgi_connect_timeout 60;
fastcgi_ignore_client_abort off;
fastcgi_intercept_errors on;
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|gz|svg|svgz|mp4|ogg|ogv|webm|htc|woff)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
# CSS and Javascript
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}
# Disable direct access of any *.php files in /wp_includes folder
location ~ ^/wp-includes/.+\.php$ {
return 444;
}
# Disable direct access of any *.php in /wp_content folder
location ~ ^/wp-content/.+\.php$ {
return 444;
}
# Disable direct access of any *.php in /plus folder
location ~ ^/plus/.+\.php$ {
return 444;
}
# Disable direct access of any *.php in /wp-admin folder
location ~ ^/wp-admin/.+\.php$ {
return 444;
}
Wir verwenden essentielle Cookies, damit diese Website funktioniert, und optionale Cookies, um den Komfort bei der Nutzung zu verbessern.
Siehe weitere Informationen und konfiguriere deine Einstellungen