Re: OpenBSD httpd configuration for cgit with lua support

2024-09-17 Thread Stuart Henderson
git README > [https://git.zx2c4.com/cgit/tree/README] and comiled cgit with lua > support using: > > `gmake LUA_PKGCONFIG=luajit CFLAGS="-I/usr/local/include/luajit-2.0" install` > > However, when I try to run the `cgit.cgi` with the following OpenBSD > `httpd` con

OpenBSD httpd configuration for cgit with lua support

2024-09-16 Thread Biswakalyan Bhuyan
ua support using: `gmake LUA_PKGCONFIG=luajit CFLAGS="-I/usr/local/include/luajit-2.0" install` However, when I try to run the `cgit.cgi` with the following OpenBSD `httpd` configuration, it doesn't work as expected: ``` server "git.example.com" { listen on * tls por

Re: httpd & calibre-server (ebooks)

2024-09-08 Thread Omar Polo
socket tcp "192.168.1.78" 8004 I guess that calibre exports an HTTP server, not a FastCGI one, so this can't work. httpd doesn't support proxying another HTTP server, it can only talk to fastcgi. You'll have to look into relayd(8) (but also keep httpd in the stack so you can use acme-client for TLS.)

Re: httpd & calibre-server (ebooks)

2024-09-07 Thread Greg Thomas
e server listening on 0.0.0.0:8004 > OPDS feeds advertised via BonJour at: 192.168.1.78 port: 8004 > _ > > When I do this, I can, from another computer within my network, navigate > to http://192.168.1.78:8004 and read my ebooks. So far so good. > I now want to access the same webpage fro

httpd & calibre-server (ebooks)

2024-09-07 Thread Am Jam
: 192.168.1.78 port: 8004 _ When I do this, I can, from another computer within my network, navigate to http://192.168.1.78:8004 and read my ebooks. So far so good. I now want to access the same webpage from outside of the network using a domain I've purchased; however, I keep getting th

Re: How to configure fastcgi with httpd?

2024-09-01 Thread Sadeep Madurange
omain socket, you have to put it somewhere > > inside the /var/www chroot; for example > > /var/www/run//fcgi.sock and then instructs httpd to talk > > to it > > > > fastcgi { > > # note that this is relative to the /var/www chroot > > socket "/run//fcgi.sock" > > } That worked! Thank you all very much for the help. -- Sadeep Madurange PGP: 103BF9E3E750BF7E

Re: How to configure fastcgi with httpd?

2024-08-31 Thread Kirill Miazine
n the following command to install it: # install -o www -g www -m 0500 flask.py /var/www/cgi-bin Then I added the following config to /etc/httpd.conf: server "localhost" { listen on * port 8080 location "/*" { fastcgi { param SCRIPT_FILENAME "/cgi-bin/fl

Re: How to configure fastcgi with httpd?

2024-08-31 Thread Matthew Weigel
listen on * port 8080 location "/*" { fastcgi { param SCRIPT_FILENAME "/cgi-bin/flask.py" } } } restarted httpd, and executed the following curl request: $ curl http://localhost:8080/ However, I keep getting 500 internal server error. Not sure w

Re: How to configure fastcgi with httpd?

2024-08-31 Thread Omar Polo
ran the following command to install it: > > # install -o www -g www -m 0500 flask.py /var/www/cgi-bin > > Then I added the following config to /etc/httpd.conf: > > server "localhost" { > listen on * port 8080 > location "/*" { > fastcg

How to configure fastcgi with httpd?

2024-08-31 Thread Sadeep Madurange
ig to /etc/httpd.conf: server "localhost" { listen on * port 8080 location "/*" { fastcgi { param SCRIPT_FILENAME "/cgi-bin/flask.py" } } } restarted httpd, and executed the following curl request: $ curl http://localhost:8080/ However, I keep getting

Re: httpd: request rewrite reliably causes 500 internal server error

2024-07-13 Thread Crystal Kolipe
On Sat, Jul 13, 2024 at 08:48:56PM +1000, Paul W. Rankin wrote: > Hello, > > I’m trying to get a basic URL rewrite working with httpd but, alas, it > seems broken. It's not broken :-). > > My goal: > > /~USER -> /htdocs/u/USER root "/htdocs/u"

httpd: request rewrite reliably causes 500 internal server error

2024-07-13 Thread Paul W. Rankin
Hello, I’m trying to get a basic URL rewrite working with httpd but, alas, it seems broken. My goal: /~USER -> /htdocs/u/USER To debug this, in case the “~” character was throwing something off, I simply tried to achieve: /u/USER -> /htdocs/u/USER I’m aware this

Re: Rate limit the httpd web server for signup requests

2024-06-13 Thread Crystal Kolipe
On Tue, Jun 11, 2024 at 10:41:33PM +, Martin wrote: > But what useful methods exists that prevent spamming a HTML signup form > from stuffing the database with useless signups? > > Naturally the accounts that haven't been validated one way or another > gets deleted, but the initial signup is a

Re: Rate limit the httpd web server for signup requests

2024-06-13 Thread Chris Bennett
On Thu, Jun 13, 2024 at 04:30:27AM -0700, Paul Pace wrote: > On 6/12/24 10:32 PM, Chris Bennett wrote: > > It's not perfect, but I have a long list of regexes that I know are spam > > that I have my Perl code that processes the form block. Trying to block > > from a log is not very helpful. It can

Re: Rate limit the httpd web server for signup requests

2024-06-13 Thread Paul Pace
On 6/12/24 10:32 PM, Chris Bennett wrote: It's not perfect, but I have a long list of regexes that I know are spam that I have my Perl code that processes the form block. Trying to block from a log is not very helpful. It can let through thousands of the same spam attempts before the log catches

Re: Rate limit the httpd web server for signup requests

2024-06-12 Thread Chris Bennett
On Tue, Jun 11, 2024 at 10:41:33PM +, Martin wrote: > I already do some rate limiting with stateful tracking options for PF, > which works really great for the stuff I use it for. > > I also use block lists of known bad IP addresses etc. > > But what useful methods exists that prevent spammin

Re: Rate limit the httpd web server for signup requests

2024-06-12 Thread Dan
Jun 12, 2024 00:56:47 Martin : > A simple CAPTCHA reduces some of the irrelevant noise, but the more > sophisticated bots solves the CAPTCHA. > > Using Cloudflare's or Google's CAPTCHA is frowned upon by the real > users, which I fully understand. > > So I was wondering, if some other clever metho

Re: Rate limit the httpd web server for signup requests

2024-06-12 Thread Rubén Llorente
No perfect solution exists, but the following may help. 1) Parse the logs of your web application and ban any IP that attempts to create multiple accounts. Not great because you may have multiple users sharing the same public IP. It only works ok if you automate it via cronjob scripts. 2) Re

Re: Rate limit the httpd web server for signup requests

2024-06-11 Thread Paul Pace
On 2024-06-11 15:41, Martin wrote: I already do some rate limiting with stateful tracking options for PF, which works really great for the stuff I use it for. I also use block lists of known bad IP addresses etc. But what useful methods exists that prevent spamming a HTML signup form from stuff

Rate limit the httpd web server for signup requests

2024-06-11 Thread Martin
I already do some rate limiting with stateful tracking options for PF, which works really great for the stuff I use it for. I also use block lists of known bad IP addresses etc. But what useful methods exists that prevent spamming a HTML signup form from stuffing the database with useless signups

Re: httpd & pixelfed

2024-05-29 Thread Kirill A . Korinsky
Greetings, On Wed, 29 May 2024 00:01:07 +0100, Am Jam wrote: > > For posterity's sake, my working /etc/httpd.conf is below: > Maybe it is worth making a port for pixelfed to allow others to install it as easily as pkg_add pixelfed with some polish documented in the description? -- wbr, Kirill

httpd: removing italic CSS from directories in directory index

2024-05-28 Thread Paul W . Rankin
Hello, I very much appreciate the new directory index in httpd. Thank you espie@ :) I would like to make a suggestion for the default CSS, which is to remove the italic styling of directories: --- /Users/pwr/Downloads/css.h.in.txt~ 2024-05-21 12:33:11 +++ /Users/pwr/Downloads/css.h.in.txt

Re: httpd & pixelfed

2024-05-28 Thread Am Jam
udes creating the > > following symlink in /var/www/pixelfed: > > - lrwxr-xr-x 1 root www37B May 27 12:15 storage@ -> > > /var/www/pixelfed/storage/app/public/ > > > > That, unfortunately, is "outside" of the root directory specified in > > /etc/httpd.conf. > > httpd is in a chroot jail so the absolute symlink won't work. > > Either use a relative symlink for the above link, or set things up so > that /var/www still works inside the chroot - > > mkdir /var/www/var; ln -s .. /var/www/var/www > > >

Re: httpd & pixelfed

2024-05-27 Thread Stuart Henderson
age/app/public/ > > That, unfortunately, is "outside" of the root directory specified in > /etc/httpd.conf. httpd is in a chroot jail so the absolute symlink won't work. Either use a relative symlink for the above link, or set things up so that /var/www still works inside the chroot - mkdir /var/www/var; ln -s .. /var/www/var/www

Re: httpd & pixelfed

2024-05-27 Thread Rubén Llorente
Wild guess: When a request is made against a picture in /storage/, it triggers the location not found * rule. The rewritten request does never hit the location "/storage/*" rule because it now requests /index.php$something instead of any object within /storage. Try placing a matching /stor

httpd & pixelfed

2024-05-27 Thread Am Jam
Hi Everyone, I am trying to install and run pixelfed (think of it as a self-hosted instagram alternative) on OpenBSD 7.5, but I am having a problem with my /etc/httpd.conf. Unfortunately, pixelfed's installation instructions only provide an nginx example. For those of you familiar with nextcloud,

Re: httpd & nextcloud

2024-05-22 Thread Souji Thenria
On Wed May 22, 2024 at 4:46 PM BST, Am Jam wrote: Your tip led me in the right direction and I now have what I need. Thank you! Glad I could help. One thing to note. I had to add the following line to get everything to work: - location "/" { block return 301 "$https://$SERVER_NAME/index.ph

Re: httpd & nextcloud

2024-05-22 Thread Am Jam
Hi Souji, Your tip led me in the right direction and I now have what I need. Thank you! One thing to note. I had to add the following line to get everything to work: - location "/" { block return 301 "$https://$SERVER_NAME/index.php"; } I added this line because, for some reason, without this

Re: httpd & nextcloud

2024-05-22 Thread Souji Thenria
On Wed May 22, 2024 at 2:38 PM BST, Am Jam wrote: Hi Everyone, Hi Am, Before anyone asks, removing "/nextcloud" from each of the location strings does not work. When I do that I get an "ERR_EMPTY_RESPONSE" error in my browser (Chrome). My httpd.conf below was inspired by the one outlined in t

httpd & nextcloud

2024-05-22 Thread Am Jam
Hi Everyone, I am trying to run a small nextcloud website and I'm having a problem with the URLs. I installed nextcloud via pkg_add, and all of its files were installed under /var/www/nextcloud. The pkg-readmes were helpful in getting nextcloud working with httpd. However, though every

Re: httpd location question

2024-03-11 Thread Alexis
Michael Hekeler writes: Is there any directive or regex for the 'location' directive, httpd doesn't support regular expressions. httpd includes lua pattern support. see patterns(7) (Though to use patterns(7) syntax, one needs to use the 'match' keyword, e.g. &qu

Re: httpd location question

2024-03-11 Thread Michael Hekeler
> Is there any directive or regex for the 'location' directive, httpd doesn't support regular expressions. httpd includes lua pattern support. see patterns(7)

httpd location question

2024-03-08 Thread Mark
Hi, In httpd, my web portal gives an HTTP 404 error when 'mysite.com/create' is typed, however 'mysite.com/create/' works. In order to *solve* this issue, I added 2 different locations pointing to the same cgi script, as: location "/create" { fastcgi socket &q

Re: "FollowSymLinks" equivalent in httpd?

2024-03-08 Thread Stuart Henderson
On 2024-03-08, James Cook wrote: > On Fri, Mar 08, 2024 at 04:28:52PM +0300, Mark wrote: >> Greetings. >> >> Trying to figure out the mailman configuration on OpenBSD. >> >> What is the equivalent of the following server block in httpd? >&

Re: "FollowSymLinks" equivalent in httpd?

2024-03-08 Thread James Cook
On Fri, Mar 08, 2024 at 04:28:52PM +0300, Mark wrote: > Greetings. > > Trying to figure out the mailman configuration on OpenBSD. > > What is the equivalent of the following server block in httpd? > > " > Options FollowSymLinks > AllowOverride None >

"FollowSymLinks" equivalent in httpd?

2024-03-08 Thread Mark
Greetings. Trying to figure out the mailman configuration on OpenBSD. What is the equivalent of the following server block in httpd? " Options FollowSymLinks AllowOverride None " Does the httpd even support following symlinks? Regards, Mark

Re: httpd generating: read_errdoc entries in syslog

2024-02-15 Thread Michael Hekeler
> Hi, > > I have a custom error template that I use for the error documents for > httpd, as described in: man httpd.conf > > In /var/www I have created: > > /err root:daemon chmod 0755 > > Within /var/www/err I have created: > > err

Re: httpd generating: read_errdoc entries in syslog

2024-02-11 Thread Carsten Reith
l configuration that points to this: > > /etc/httpd.conf > . . . > errdocs "/err" > > When I cause an error with httpd, the error document template I have > created gets rendered to the client, but I get entries in syslog like > the following:

Re: httpd generating: read_errdoc entries in syslog

2024-02-11 Thread Carsten Reith
ve a global configuration that points to this: > > /etc/httpd.conf > . . . > errdocs "/err" > > When I cause an error with httpd, the error document template I have > created gets rendered to the client, but I get entries in syslog like > the fo

httpd generating: read_errdoc entries in syslog

2024-02-10 Thread J Doe
Hi, I have a custom error template that I use for the error documents for httpd, as described in: man httpd.conf In /var/www I have created: /errroot:daemon chmod 0755 Within /var/www/err I have created: err.htmlwww:www chmod 0444 In my

httpd: request rewrite & directory auto index

2023-11-27 Thread Benjamin Stürz
Hi misc@, I may have found a bug with the combination of `request rewrite` and `directory auto index` when using httpd(8). Preparation: mkdir -p /var/www/htdocs/pub/user echo "Hello World" > /var/www/htdocs/pub/user/test /etc/httpd.conf: server "example.com" {

Re: httpd stopping

2023-09-25 Thread Stuart Henderson
On 2023-09-23, Nick Holland wrote: > Hello, > Twice in the last couple weeks, I've had httpd fall over on me. > Only clue I've got is this in /var/log/messages: > > MASTER $ grep httpd daemon > Sep 23 05:24:06 node2 httpd[69989]: logger exiting, pid 69989 > Se

httpd stopping

2023-09-23 Thread Nick Holland
Hello, Twice in the last couple weeks, I've had httpd fall over on me. Only clue I've got is this in /var/log/messages: MASTER $ grep httpd daemon Sep 23 05:24:06 node2 httpd[69989]: logger exiting, pid 69989 Sep 23 05:24:06 node2 httpd[80972]: parent terminating, pid 80972 Sep 23 05:2

httpd server "default" is not what I expected

2023-08-13 Thread Alfred Morgan
0. /etc/hosts: 127.0.0.1 localhost test1 test2 /tmp/httpd.conf: server "test1" { listen on localhost port 8080 block return 200 } server "default" { listen on localhost port 8080 block return 404 } httpd -df /tmp/httpd.conf & ftp -o - http://localhost:8080/ #2

Re: httpd and libmodsecurity

2023-08-10 Thread Stuart Henderson
On 2023-08-10, Tito Mari Francis Escaño wrote: > Hi, > Can somebody point me to resources on how to use libmodsecurity with httpd > to create a WAF for a web application? > If it's not feasible, please advise what options are there for WAF that can > be used with the buil

httpd and libmodsecurity

2023-08-10 Thread Tito Mari Francis Escaño
Hi, Can somebody point me to resources on how to use libmodsecurity with httpd to create a WAF for a web application? If it's not feasible, please advise what options are there for WAF that can be used with the built-in httpd. Thank you.

Re: Weird cvs diff of recent httpd changes on OPENBSD_7_2 branch

2023-07-12 Thread Stefan Sperling
On Wed, Jul 12, 2023 at 06:28:47PM +0200, Matthias Pressfreund wrote: > Why does 'cvs diff -D...' on the OPENBSD_7_2 branch > include changes from before the given date? Because cvs -D resolves to the most recent revision no later than the given date, and the OPENBSD_7_2 tag contains files that we

Weird cvs diff of recent httpd changes on OPENBSD_7_2 branch

2023-07-12 Thread Matthias Pressfreund
Why does 'cvs diff -D...' on the OPENBSD_7_2 branch include changes from before the given date? # cvs -qd anon...@anoncvs.spacehopper.org:/cvs checkout -rOPENBSD_7_2 -P src/usr.sbin/httpd U src/usr.sbin/httpd/Makefile U src/usr.sbin/httpd/config.c U src/usr.sbin/httpd/control.c U sr

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-25 Thread Werner Boninsegna
Hello Stuart, your suggestion worked perfectly, thanks a lot! Werner On 3/25/23 17:18, Stuart Henderson wrote: On 2023-03-24, Werner Boninsegna wrote: Hello, fake /dev/random means I created a file with a string of text such as "1234567890". This was a workaround t

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-25 Thread Stuart Henderson
On 2023-03-24, Werner Boninsegna wrote: > Hello, > > fake /dev/random means I created a file with a string of text such as > "1234567890". This was a workaround to get the application running. Yes that's as bad as I thought. While most things in OpenBSD itself don't use /dev/random or /dev/urand

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-24 Thread Omar Polo
On 2023/03/24 18:06:03 +0800, Werner Boninsegna wrote: > Hello, > > fake /dev/random means I created a file with a string of text such as > "1234567890". This was a workaround to get the application running. ... > Your suggestion is to chroot into /var/www and run "MAKEDEV random" ? If you re

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-24 Thread Werner Boninsegna
Hello, fake /dev/random means I created a file with a string of text such as "1234567890". This was a workaround to get the application running. Your suggestion is to chroot into /var/www and run "MAKEDEV random" ? I will give it a try. Werner On 3/24/2023 3:27 PM, Stuart Henderson wrote:

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-24 Thread Stuart Henderson
On 2023-03-23, Werner Boninsegna wrote: > Please note that I had to "fake" /dev/random, as I couldn't figure out > how to set such a device in the chroot environment. I have no idea what a "fake" /dev/random looks like but that sounds a lot less safe than running the cgi script outside the chroot

Re: Using gzip-static with httpd location

2023-03-23 Thread Zack Newman
On 3/23/23 21:22, Jared Harper wrote: On my server (7.2 amd64) I have gzip-static set in the server block as documented, and it appears to work as expected. I am sorry that it probably doesn't help your situation, but maybe the differences in configuration can help point you in the right direction

Re: Using gzip-static with httpd location

2023-03-23 Thread Joel Carnat
Le 23/03/2023 à 22:22, Jared Harper a écrit : On Thursday, March 23rd, 2023 at 2:15 PM, Jordan Geoghegan wrote: On 3/9/23 17:31, Joel Carnat wrote: Hi, I just tried applying gzip compression on a simple test web site using httpd and the gzip-static option ; using OpenBSD 7.2/amd64. As I

Re: Using gzip-static with httpd location

2023-03-23 Thread Jared Harper
On Thursday, March 23rd, 2023 at 2:15 PM, Jordan Geoghegan wrote: > > On 3/9/23 17:31, Joel Carnat wrote: > > > Hi, > > > > I just tried applying gzip compression on a simple test web site using > > httpd and the gzip-static option ; using OpenBSD 7.2/amd64.

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-23 Thread Werner Boninsegna
then you have to copy the required perl modules in your chroot. Or use slowcgi -p / to disable chroot. However since bugzilla is ultimately a cgi application you can deploy it via fastcgi which is supported by httpd(8) natively. afaik it doesn't support fastcgi, upstr

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-19 Thread Michael Hekeler
> > > However since bugzilla is ultimately a cgi application you can deploy it > > via fastcgi which is supported by httpd(8) natively. > > afaik it doesn't support fastcgi, upstream suggestion is to use > fcgiwrap which does basically the same as slowcgi. Uuh - didn'

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-17 Thread Stuart Henderson
it > via fastcgi which is supported by httpd(8) natively. afaik it doesn't support fastcgi, upstream suggestion is to use fcgiwrap which does basically the same as slowcgi. -- Please keep replies on the mailing list.

Re: Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-17 Thread Michael Hekeler
Am 12.03.23 00:46 schrieb Werner Boninsegna: > Hello, > > I wonder if anybody is running Bugzilla in httpd? > > I have completed the setup and run the test scripts successfully, however > when trying to access it from the browser, I get below error: > > 'Pg' is

Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-15 Thread Daniele B.
Werner Boninsegna : > I wonder if anybody is running Bugzilla in httpd? > > I have completed the setup and run the test scripts successfully, however > when trying to access it from the browser, I get below error: > > 'Pg' is not a valid choice for $db_driver i

Re: Using gzip-static with httpd location

2023-03-13 Thread Jordan Geoghegan
On 3/9/23 17:31, Joel Carnat wrote: Hi, I just tried applying gzip compression on a simple test web site using httpd and the gzip-static option ; using OpenBSD 7.2/amd64. As I understood the man page, gzip-static is supposed to be used inside the server block ; like listen, errdocs or

Running Bugzilla in httpd - 'Pg' is not a valid choice for $db_driver in localconfig

2023-03-11 Thread Werner Boninsegna
Hello, I wonder if anybody is running Bugzilla in httpd? I have completed the setup and run the test scripts successfully, however when trying to access it from the browser, I get below error: 'Pg' is not a valid choice for $db_driver in localconfig: Can't load '/usr

Re: Using gzip-static with httpd location

2023-03-10 Thread Marcus MERIGHI
j...@carnat.net (Joel Carnat), 2023.03.10 (Fri) 17:41 (CET): > Le 10/03/2023 à 16:41, Marcus MERIGHI a écrit : > > j...@carnat.net (Joel Carnat), 2023.03.10 (Fri) 02:31 (CET): > > > I just tried applying gzip compression on a simple test web site using > > > httpd >

Re: Using gzip-static with httpd location

2023-03-10 Thread Joel Carnat
Le 10/03/2023 à 16:41, Marcus MERIGHI a écrit : Hello, j...@carnat.net (Joel Carnat), 2023.03.10 (Fri) 02:31 (CET): I just tried applying gzip compression on a simple test web site using httpd and the gzip-static option ; using OpenBSD 7.2/amd64. As I understood the man page, gzip-static is

Re: Using gzip-static with httpd location

2023-03-10 Thread Marcus MERIGHI
Hello, j...@carnat.net (Joel Carnat), 2023.03.10 (Fri) 02:31 (CET): > I just tried applying gzip compression on a simple test web site using httpd > and the gzip-static option ; using OpenBSD 7.2/amd64. > > As I understood the man page, gzip-static is supposed to be used inside

Using gzip-static with httpd location

2023-03-09 Thread Joel Carnat
Hi, I just tried applying gzip compression on a simple test web site using httpd and the gzip-static option ; using OpenBSD 7.2/amd64. As I understood the man page, gzip-static is supposed to be used inside the server block ; like listen, errdocs or tls. But doing so does not seem to enable

Re: Gitweb with Httpd on openbsd server

2023-02-22 Thread Daniele B.
> >> I am in trouble to set up gitweb with httpd. I am not aware with webersever. > > First thing to notice is that most web server (httpd(8) from base but > also a few of the ones you can get from ports) on OpenBSD runs by > default in the /var/www chroot. Problem ar

Re: Gitweb with Httpd on openbsd server

2023-02-21 Thread Omar Polo
On 2023/02/19 18:17:25 +0100, airwan+...@mailo.com wrote: > Hello, > > I am in trouble to set up gitweb with httpd. I am not aware with webersever. First thing to notice is that most web server (httpd(8) from base but also a few of the ones you can get from ports) on OpenBSD runs by d

Gitweb with Httpd on openbsd server

2023-02-19 Thread airwan+git
Hello, I am in trouble to set up gitweb with httpd. I am not aware with webersever. My /etc.gitweb.conf contains: $projectroot = "/home/git"; $projects_list = $projectroot; My /etc/httpd.conf contains server "default" { listen on * port 80 f

Re: httpd and locale

2023-01-31 Thread Manuel Giraud
Omar Polo writes: > On 2023/01/30 15:57:03 +0100, Manuel Giraud wrote: >> Hi, >> >> Is it possible to serve files with non ASCII UTF-8 charaters in their >> names with httpd? I have tried to start httpd like this: >> >> $ env LC_CTYPE=en_US.UT

Re: httpd and locale

2023-01-30 Thread Omar Polo
On 2023/01/30 15:57:03 +0100, Manuel Giraud wrote: > Hi, > > Is it possible to serve files with non ASCII UTF-8 charaters in their > names with httpd? I have tried to start httpd like this: > > $ env LC_CTYPE=en_US.UTF-8 httpd -d > > But, I always get a 404

httpd and locale

2023-01-30 Thread Manuel Giraud
Hi, Is it possible to serve files with non ASCII UTF-8 charaters in their names with httpd? I have tried to start httpd like this: $ env LC_CTYPE=en_US.UTF-8 httpd -d But, I always get a 404 error on such files. Am I missing something? Or maybe this behaviour is on purpose? Thanks

Re: httpd(8) request rewrite - 500 internal server error

2023-01-25 Thread Ashlen
Oh. I should add that if all you want is a static redirect, this is a simpler way of making that work. The first example I gave is in case you want to redirect the contents of "/from/" as well. server "localhost" { listen on 127.0.0.1 port 80 location "/from/" { blo

Re: httpd(8) request rewrite - 500 internal server error

2023-01-25 Thread Ashlen
On 23/01/25 11:20, Lévai, Dániel wrote: > Hi all, > > I was trying to do a basic path rewrite in httpd(8) on 7.2-stable, and I just > can't see what I'm missing: > > httpd.conf: > server "host" { > listen on egress port 12345 >

httpd(8) request rewrite - 500 internal server error

2023-01-25 Thread Lévai , Dániel
Hi all, I was trying to do a basic path rewrite in httpd(8) on 7.2-stable, and I just can't see what I'm missing: httpd.conf: server "host" { listen on egress port 12345 root "/htdocs" location "/" { request r

Re: Httpd shell globbing rules

2023-01-11 Thread a user
it seems to be even though i have syntax error in file, config test gives me ok. is it because it parsed single entry? you are right if i move my default site on top it gives me that output. are there any reason it's taking first server entry? rather than giving me 40x error? --- Orig

Re: Httpd shell globbing rules

2023-01-11 Thread Crystal Kolipe
On Wed, Jan 11, 2023 at 09:42:14AM +, rahul.dshmkh1 wrote: > as per httpd.conf file i should be able to match exact one character in > server "a?.sitea.com" > but when i test this way i am able to visit sitea, below are the test results > :~> curl a.sitea.com > This is site a > :~> curl a1.sit

Httpd shell globbing rules

2023-01-11 Thread rahul.dshmkh1
Hi, I am learning OpenBSD httpd and as per httpd.conf(5) in servers section i can use ? for single character match, but i am unable to test it properly. below is my config. OpenBSD Version(generic) openbsd# uname -r 7.2 /etc/httpd.conf server "a?.site

Re: Guide for Configuring python(1) with httpd(8)

2022-12-24 Thread Crystal Kolipe
On Fri, Dec 23, 2022 at 07:57:56PM +, indivC wrote: > However, the 'cgi' module is giving me trouble that I can't resolve. > It simply won't import without errors. > > Why am I trying to import the 'cgi' module? > What I want to do is pass data. ... > The above is just a simple example that

Re: Guide for Configuring python(1) with httpd(8)

2022-12-23 Thread indivC
--- Original Message --- On Tuesday, December 20th, 2022 at 6:44 PM, Crystal Kolipe wrote: If you don't mind, I'd like to respond to some of this later. I think I better understand some of my confusions, but I'm not fully there yet. Currently, I've had no issues displaying content. I ca

Re: Guide for Configuring python(1) with httpd(8)

2022-12-20 Thread Crystal Kolipe
es with the webserver using a socket, (usually a local socket), using the FastCGI protocol. This means that your program does not need to, (and should not), run within the webserver's chroot. It might run in it's own chroot, and it might also use other security features of OpenBSD such as

Re: Guide for Configuring python(1) with httpd(8)

2022-12-20 Thread indivC
Crystal, I really appreciate the detailed explanations and step by step instructions. I was able to follow everything without a problem and was able to finally access the python file from a web browser. On Monday, December 19th, 2022 at 11:07 AM, Crystal Kolipe wrote: > # mkdir /var/www/usr/l

Re: Guide for Configuring python(1) with httpd(8)

2022-12-19 Thread Crystal Kolipe
needed. > Where does this file need to be placed? > What configuration changes need to be made to make this work? The first thing to understand is that there are several ways to do what you want to do. Quite a lot of different ways, actually. > Currently, httpd(8) is running > an

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread indivC
;') print('Hello World') print('') print('\n') Within a browser, I want to be able to access this file and see 'Hello World' displayed. Where does this file need to be placed? What configuration changes need to be made to make this work? Currently, htt

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Bodie
On 18.12.2022 08:07, indivC wrote: Can anyone provide a guide for this or rough instructions? I'm running httpd(8) and trying to utilize a python(1) script with an html file. I've got this working using perl(1). However, it doesn't work with python(1) when following the same s

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Stuart Henderson
is or rough instructions?", > which is in reference to the subject > "Guide for Configuring python(1) with httpd(8)". Surely the goal is to run some particular software and make it available via an httpd(8) frontend and not just run python(1) i.e. the Python interpreter? >

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Crystal Kolipe
On Sun, Dec 18, 2022 at 12:18:32PM +0100, Omar Polo wrote: > On pypi there is a 'fastcgi' library. it's not packaged on OpenBSD > and I can't asses how good it is Alternatively, just write a fastcgi handler from scratch - the protocol is fairly simple and fully document

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Omar Polo
On 2022/12/18 10:23:39 +, indivC wrote: > On Sunday, December 18th, 2022 at 9:04 AM, Omar Polo > wrote: > > Since httpd speaks fastcgi, why not write some python code that > > accepts the requests over fastcgi? (assuming this is what you're > > trying to do,

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread indivC
On Sunday, December 18th, 2022 at 8:38 AM, Mark Willson > This is the script I use to set up python for httpd: I looked over the script and it seems to do pretty much what I've already done. It copies some additional files that I didn't copy. My first attempt was just to

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread indivC
bject "Guide for Configuring python(1) with httpd(8)". Did i precede to explain how I was trying to attempt to accomplish Y with X? Yes, but I don't see why that would be a problem. I feel like it's better for users to actually attempt to try and solve their problems then not to tr

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Omar Polo
instead of asking how to do X so that you can do Y, ask directly how to do Y. Why do you need python at all in the chroot? Installing all the needed files (and keeping them up-to-date!) manually in a chroot is a pain. Since httpd speaks fastcgi, why not write some python code that accepts the

Re: Guide for Configuring python(1) with httpd(8)

2022-12-18 Thread Mark Willson
> -Original Message- > From: owner-m...@openbsd.org On Behalf Of indivC > Sent: 18 December 2022 07:07 > To: misc@openbsd.org > Subject: Guide for Configuring python(1) with httpd(8) > > Can anyone provide a guide for this or rough instructions? > I'm r

Guide for Configuring python(1) with httpd(8)

2022-12-17 Thread indivC
Can anyone provide a guide for this or rough instructions? I'm running httpd(8) and trying to utilize a python(1) script with an html file. I've got this working using perl(1). However, it doesn't work with python(1) when following the same steps. My python(1) version is 3.

Re: Unimplemented httpd socket? (/var/run/httpd.sock)

2022-10-24 Thread Jason McIntyre
On Sun, Oct 23, 2022 at 10:17:20PM -0400, Dante Catalfamo wrote: > Hey, > > I was reading the httpd(8) and noticed that there's a reference to a > socket located at `/var/run/httpd.sock'. It says it's a "UNIX-domain > socket used for communication with httpd

Unimplemented httpd socket? (/var/run/httpd.sock)

2022-10-23 Thread Dante Catalfamo
Hey, I was reading the httpd(8) and noticed that there's a reference to a socket located at `/var/run/httpd.sock'. It says it's a "UNIX-domain socket used for communication with httpd". I was hoping maybe it would be used to provide live statistics about httpd, but it&#x

Re: httpd error.log

2022-09-02 Thread Mike Fischer
gt;>>> Right, try something like this and watch the error.log: >>>> curl --url 'https://historia.agroena.org/i-dont-exist.php' >/dev/null >>>> HTH >>>> Mike >>> ok now: >>> first i stop http rcctl stop httpd, then deleted error.log;

Re: httpd error.log

2022-09-01 Thread Mike Fischer
e script to execute. >> One reason could be that you fiddled with the settings and let PHP-FPM run >> without chroot(2), while httpd(8) is running with chroot(2). >> But it might also be a misconfiguration of in httpd.conf. Not sure about all >> of the potential reasons

Re: httpd error.log

2022-09-01 Thread latincom
>>> >>> curl --url 'https://historia.agroena.org/i-dont-exist.php' >/dev/null >>> >>> HTH >>> Mike >>> >> >> ok now: >> >> first i stop http rcctl stop httpd, then deleted error.log; and rcctl >> restart h

Re: httpd error.log

2022-09-01 Thread Mike Fischer
https://historia.agroena.org/i-dont-exist.php' >/dev/null >> >> HTH >> Mike >> > > ok now: > > first i stop http rcctl stop httpd, then deleted error.log; and rcctl > restart http! It is working correctly. > thanks Mike Not sure how that (o

  1   2   3   4   5   6   7   8   9   10   >