From: Yazar Strulik <yazar.strulik@googlemail.com>
To: cgit@lists.zx2c4.com
Subject: cgit simple-authentication.lua problem
Date: Thu, 15 Jun 2023 09:40:35 +0200 [thread overview]
Message-ID: <e78e53ac-52d9-9b42-7030-76854693c15d@gmail.com> (raw)
Hi cgit-people,
I need some help with getting the simple-authentication.lua running.
I'm using gitolite as my git base with cgit as my front-end and apache2
as the webserver.
The main cgit configuration works but it cant interpret the .lua files
when using the authentication-filters by adding following line to the
cgitrc:
```
auth-filter=/usr/lib/cgit/filters/simple-authentication.lua
```
The error I get from apache2 error.log is:
```
AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 1: :
/usr/lib/cgit/cgit.cgi
AH01215: --: not found: /usr/lib/cgit/cgit.cgi
AH01215: : /usr/lib/cgit/cgit.cgi
AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 2: --: not
found: /usr/lib/cgit/cgit.cgi
AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 3: --: not
found: /usr/lib/cgit/cgit.cgi
AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 4: --: not
found: /usr/lib/cgit/cgit.cgi
AH01215: /usr/lib/cgit/filters/simple-authentication.lua: 6: Syntax
error: newline unexpected: /usr/lib/cgit/cgit.cgi
```
Which seems from "--: not found" as if he is trying to execute the lua
comments at the start of simple-authentication.lua.
I enabled the cgi and lua mods for apache (with a2enmod) and apt
installed luajit, lua-posix and luaossl.
I'm not really sure how to fix this problem but maybe someone of you
knows how to fix it, since problems on that are rare on the internet.
Greetings,
Yaz
next reply other threads:[~2023-06-15 7:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 7:40 Yazar Strulik [this message]
2023-06-15 18:57 ` John Keeping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e78e53ac-52d9-9b42-7030-76854693c15d@gmail.com \
--to=yazar.strulik@googlemail.com \
--cc=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).