Git Product home page Git Product logo

Comments (6)

pevma avatar pevma commented on July 16, 2024

What is the result if you use:
https://scirius.site.inet/rules/

instead of the way you mentioned:
https://scirius.site.inet/rules/ruleset/3/
?

from scirius.

tmarchst avatar tmarchst commented on July 16, 2024

https://scirius.site.inet/rules/ works fine, even the links that leads to https://scirius.site.inet/rules/
but the link that should point to
https://scirius.site.inet/rules/ruleset/3/ leads to https://scirius.site.inet/rules/ruleset/rules/ruleset/3/
When click on that link i got a 404. See Debug Output stated below.

When enter the Credentials at the Login Page nothing seems to happen. But Tokens are received and sent back. when deleting /accounts/login from the Addressbar i'm logged in.


Page not found (404)
Request Method:     GET
Request URL:    https://scirius.tah.insite/rules/ruleset/rules/ruleset/3/rules/ruleset/rules/ruleset/3/

Using the URLconf defined in scirius.urls, Django tried these URL patterns, in this order:

    ^admin/
    ^rules/ ^$ [name='index']
    ^rules/ ^about/$ [name='about']
    ^rules/ ^search$ [name='search']
    ^rules/ ^es$ [name='elasticsearch']
    ^rules/ ^source/$ [name='sources']
    ^rules/ ^source/add$ [name='add_source']
    ^rules/ ^source/(?P<source_id>\d+)/$ [name='source']
    ^rules/ ^source/(?P<source_id>\d+)/update$ [name='update_source']
    ^rules/ ^source/(?P<source_id>\d+)/diff$ [name='diff_source']
    ^rules/ ^source/(?P<source_id>\d+)/changelog [name='changelog_source']
    ^rules/ ^source/(?P<source_id>\d+)/edit$ [name='edit_source']
    ^rules/ ^source/(?P<source_id>\d+)/delete$ [name='delete_source']
    ^rules/ ^sourceupdate/(?P<update_id>\d+)$ [name='sourceupdate']
    ^rules/ ^category/$ [name='categories']
    ^rules/ ^category/(?P<cat_id>\d+)/$ [name='category']
    ^rules/ ^category/(?P<cat_id>\d+)/suppress$ [name='suppress_category']
    ^rules/ ^ruleset/$ [name='rulesets']
    ^rules/ ^ruleset/add$ [name='rulesets']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/$ [name='ruleset']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/update$ [name='update_ruleset']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/edit$ [name='edit_ruleset']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/delete$ [name='delete_ruleset']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/addsupprule$ [name='addsupprule']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/display$ [name='display_ruleset']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/export$ [name='export_ruleset']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/copy$ [name='copy_ruleset']
    ^rules/ ^ruleset/(?P<ruleset_id>\d+)/changelog [name='changelog_ruleset']
    ^rules/ ^rule/(?P<rule_id>\d+)/suppress$ [name='suppress_rule']
    ^rules/ ^rule/pk/(?P<rule_id>\d+)/$ [name='rule']
    ^rules/ ^rule/(?P<rule_id>\d+)/$ [name='rule_sid']
    ^accounts/
    ^suricata/
    ^$
    ^kibana/(?P<path>.*)$
    ^elasticsearch/(?P<path>.*)$

The current URL, rules/ruleset/rules/ruleset/3/, didn't match any of these.

from scirius.

pevma avatar pevma commented on July 16, 2024

I am not understanding - why do you explicitly need to go to:
https://scirius.site.inet/rules/ruleset/3/

from scirius.

tmarchst avatar tmarchst commented on July 16, 2024

Because the link and the Ruleset site to a specific Ruleset is generated as https://scirius.site.inet/rules/ruleset/rules/ruleset/3/ while it should be https://scirius.site.inet/rules/ruleset/3/
When clicking the link that was generated the debug message states that i tryed to visit
https://scirius.site.inet/rules/ruleset/rules/ruleset/3/rules/ruleset/rules/ruleset/3/

from scirius.

regit avatar regit commented on July 16, 2024

Hi,

If you are using nginx to serve the fcgi, you need to tune /etc/nginx/fastcgi_params by removing the following line which is django incompatible:

fastcgi_param SCRIPT_NAME

Let us know if it helps.

from scirius.

tmarchst avatar tmarchst commented on July 16, 2024

Thanks for the hint.
Scirius working fine now.

from scirius.

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.