Additional index on http redirect

This commit is contained in:
Bob Mottram 2017-04-03 20:24:25 +01:00
parent c5658b22d2
commit 240a9e9283
2 changed files with 4 additions and 1 deletions

View File

@ -543,7 +543,7 @@ function install_gnusocial_main {
gnusocial_nginx_site=/etc/nginx/sites-available/$GNUSOCIAL_DOMAIN_NAME
if [[ $ONION_ONLY == "no" ]]; then
function_check nginx_http_redirect
nginx_http_redirect $GNUSOCIAL_DOMAIN_NAME
nginx_http_redirect $GNUSOCIAL_DOMAIN_NAME "index index.php"
echo 'server {' >> $gnusocial_nginx_site
echo ' listen 443 ssl;' >> $gnusocial_nginx_site
echo ' listen [::]:443 ssl;' >> $gnusocial_nginx_site

View File

@ -111,6 +111,9 @@ function nginx_http_redirect {
echo " error_log /dev/null;" >> $filename
function_check nginx_limits
nginx_limits $domain_name
if [ ${#2} -gt 0 ]; then
echo " $2;" >> $filename
fi
echo ' rewrite ^ https://$server_name$request_uri? permanent;' >> $filename
echo '}' >> $filename
echo '' >> $filename