Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Redirecting 80 to 443

On Tue, 2023-06-06 at 19:54 +0200, Sagar Acharya wrote:
> I'm using current httpd server shipped with NetBSD to host my website
> at link below. It is awesome. I am shocked as to how complicated
> server hosting is made by commercial companies!

The NetBSD is very minimal and it is missing many features that you
might expect a web server to have. Features such as ...

> I wanted to know now, since I have added a cert, how do I redirect
> all port 80 requests to port 443?

this one. I think you will need to write a CGI program to get this
feature. It's not very important though because modern web browsers
will try https before http if you just type in a partial URL such as 

> Thank you devs. Also, please link me to pages where I can learn how
> to use Lua with cgi.

The httpd manual page describes how to invoke Lua scripts, but these
aren't CGI scripts. The manual page also describes how to invoke CGI
scripts of course.


Home | Main Index | Thread Index | Old Index