New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nginx redirect rules #8750

Closed
ewinslow opened this Issue Jul 24, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@ewinslow
Member

ewinslow commented Jul 24, 2015

Here's a basic one based on the one at community-test that seems to work fine.

server {
        listen 80;
        server_name community-test.elgg.org;
        root   /var/www/community-test.elgg.org;
        index  index.php index.html index.htm;

        location ~ (^\.|/\.) {
                return 403;
        }

        location = /rewrite.php {
                rewrite ^(.*)$ /install.php;
        }

        location / {
                try_files $uri $uri/ /index.php?__elgg_uri=$uri&$query_string;
        }

        client_max_body_size 32m;

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        location ~ /\.ht {
                deny  all;
        }
}

@ewinslow ewinslow added this to the Elgg 2.0.x milestone Jul 24, 2015

ewinslow added a commit to ewinslow/Elgg that referenced this issue Aug 4, 2015

ewinslow added a commit to ewinslow/Elgg that referenced this issue Aug 5, 2015

ewinslow added a commit to ewinslow/Elgg that referenced this issue Aug 5, 2015

ewinslow added a commit to ewinslow/Elgg that referenced this issue Aug 5, 2015

ewinslow added a commit to ewinslow/Elgg that referenced this issue Aug 5, 2015

@ewinslow ewinslow closed this in #8797 Aug 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment