Additional index on http redirect
This commit is contained in:
parent
c5658b22d2
commit
240a9e9283
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue