H
H
Herman Martin2020-12-30 16:34:44
Nginx
Herman Martin, 2020-12-30 16:34:44

How to proxy a subdomain to a domain folder without a redirect?

Greetings
How to proxy a subdomain to a domain folder without a redirect?
like this my.domain.com => domain.com/my ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-12-30
@dklight

server {

    server_name my.domain.com;
    
    location / {
        proxy_pass http://domain.com/my/;    
    }
    
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question