Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx issue #4

Open
153 opened this issue Oct 20, 2023 · 4 comments
Open

Nginx issue #4

153 opened this issue Oct 20, 2023 · 4 comments

Comments

@153
Copy link

153 commented Oct 20, 2023

This is a bug I'm facing

I am able to view and use the perl scripts in Nginx with the following code block:

location ~ \.pl$ {
  try_files $uri $uri/ index.html;
  include fastcgi_params;
  fastcgi_pass unix:/var/run/fcgiwrap.socket;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

however trying to access URLs such as /test/kareha.pl/1697812648/ render a 404 error

I actually got this in Kareha because trying to run Kiramoji gives me this error:

Bareword "ATOM_FILE" not allowed while "strict subs" in use at /test/kiramoji.pl line 271, <FILE> line 4.

... however I assume that the solution to this applies to karamoji and kareha users alike :)

@153
Copy link
Author

153 commented Oct 20, 2023

Also I commented out the line saying "use strict" and now I get error message Undefined subroutine &main::ATOM_TEMPLATE called at /test/kiramoji.pl line 271.

This is for mode_image btw. It looks as though mode_message would support ATOM_TEMPLATE per
https://github.com/search?q=repo%3AFlameborn%2FKiramoji%20atom_template&type=code

@Flameborn
Copy link
Owner

I am unfortunately not familiar enough with Nginx to investigate what the issue might be at this time.

A 404 usually means that Kiramoji is not receiving the rest of the URL as parameters, and Nginx is likely looking for a file on disk.

While the image mode did not receive as much love in the Kiramoji fork of Kareha and thus it's slightly outdated, I would love to fix this once Nginx cooperates.

@153
Copy link
Author

153 commented Oct 21, 2023

Solved https://4-ch.net/tech/kareha.pl/1697813389/4

@Flameborn try setting up a new board with mode_image , do you also get an error?

@Flameborn
Copy link
Owner

Awesome. For the record, could you please provide your working Nginx config? Perhaps I could add it as an example similarly to Caddy2.

Also, is there something we should change on Kiramoji's side, or did it end up being an Nginx issue only?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants