Skip to content

Does anyone know how to change the default base url of the jsoncrack service? #121

Answered by IvoLeist
peterwoo339 asked this question in Q&A
Discussion options

You must be logged in to vote

I am by far no nginx expert but something along that lines (below) should work, no (?):
*untestested:

server {
    listen 80;
	access_log  /var/log/nginx/http.access.log;
    
    location / {
        access_log  /var/log/nginx/http.access.log;
        error_log  /var/log/nginx/http.error.log;

        root /usr/share/nginx/html;
        index index.html index.htm;
        try_files $uri $uri/ /index.html =404;
    }
    
    location /jsoncrack/ {
        access_log /var/log/nginx/jsoncrack.access.log;
        error_log /var/log/nginx/jsoncrack.error.log;
        proxy_pass http://jsoncrack:8080/jsoncrack/;
        include includes/proxy-set-header.conf;
    }
}

In the example above ngi…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by AykutSarac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants