Skip to content
Discussion options

You must be logged in to vote

I'm so sorry for wasting your time, I fixed this in the nginx config:

APP_URL=https://$host/snipe-it # No trailing slash

nginx config: /snipe-it must be redirected to /snipe-it/

location /snipe-it {
    client_max_body_size 8M;
    root /home/snipeit/snipe-it/public;
    try_files $uri $uri/ /snipe-it/index.php$is_args$args;

    location = /snipe-it {
        return 301 /snipe-it/;
    }

    location /snipe-it/ {
        rewrite ^/snipe-it(/.*)$ $1 break;
        try_files $uri /snipe-it/index.php$is_args$args;
    }

    location ~ \.php$ {
        include fastcgi_params;
        set $saved_request_uri $request_uri;
        if ($request_uri ~ ^/snipe-it(/.+)$) {
            set $saved_…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@druexmachina
Comment options

@druexmachina
Comment options

Comment options

You must be logged in to vote
1 reply
@snipe
Comment options

Answer selected by druexmachina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
🚫 not a bug This issue is not a bug
2 participants
Converted from issue

This discussion was converted from issue #17848 on September 12, 2025 16:52.