Skip to content

How to run webvirtcloud behind nginx with a sub directory #418

@KMFtcy

Description

@KMFtcy

Hi there. I'm running webvirtcloud service behind a nginx from public network.

The expose url like this: http://domain:port/webcirtcloud/. My nginx config was like :

location /webvirtcloud {
        client_max_body_size 20m;
        client_body_buffer_size 256k;
        proxy_connect_timeout 180s;
        proxy_send_timeout 180s;
        proxy_read_timeout 180s;
        proxy_buffer_size 128k;
        proxy_buffers 32 64k;
        proxy_busy_buffers_size 128k;
        proxy_temp_file_write_size 128k;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass  http://127.0.0.1:4001/;
}

4001 is where the webvirtcloud service exposed.

When I accessed, I was redirected to : http://domain/accounts/login/ , even the port has been deleted.

How can I config webvirtcloud to satisfy this need ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions