0

I want to config the nginx for my onion service.

The config below works well

server {
    listen 80;
    server_name test.com;
    root "/my-project-location/";

    index index.html index.htm index.php;

    charset utf-8;

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

but once I change the server_name to an onion domain, nginx got error

server {
    listen 80;
    server_name abcdefghijk.onion;
    root "/my-project-location/";

    index index.html index.htm index.php;

    charset utf-8;

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

enter image description here

how can I solve this issue please? I googled it but nothing helped.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.