Git Product home page Git Product logo

Comments (5)

sevdokimov avatar sevdokimov commented on September 15, 2024

LogViewer works in https://somehost:8111/ , and nginx map it to https://somehost/logs , correct?
You can try to run log-viewer on https://somehost:8111/ using log-viewer.server.context-path="/logs" variable. (supported since 0.1.7)

Does nginx passes the original URL to log-viewer somehow?

from log-viewer.

sumitrathore42 avatar sumitrathore42 commented on September 15, 2024

yes, this works perfect with the IP:PORT
I tried by setting context-path as you suggested.
but when we put it behind nginx, the js and css file are getting 404.
the url currently generated:
https://somehost/styles.c169595171167aaa32f0.css
It should be
https://somehost/logs/styles.c169595171167aaa32f0.css

nginx configuration is as below.

location /logs {
include /etc/nginx/includes/proxy.conf;
proxy_pass http://someip:8111/logs;

from log-viewer.

sevdokimov avatar sevdokimov commented on September 15, 2024

Got it.
Please, try this https://github.com/sevdokimov/log-viewer/releases/tag/0.1.8-SNAPSHOT release, the problem must be fixed.

from log-viewer.

sumitrathore42 avatar sumitrathore42 commented on September 15, 2024

@sevdokimov this worked. Thanks for the quick support.

from log-viewer.

SlodeSoft avatar SlodeSoft commented on September 15, 2024

My config Nginx :

location /logs {
root /usr/share/nginx/html/log-viewer-1.0.3/;
proxy_pass http://127.0.0.1:8111;
}

from log-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.