💾 Archived View for unixcat.coffee › techne › nginx.gmi captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

➡️ Next capture (2022-01-08)

-=-=-=-=-=-=-

Nginx

UserDir

Edit the site's configuration file, e.g., /etc/nginx/sites-available/site.conf, and add the following in the server section:

location ~ ^/~(.+?)(/.*)?$ {
    alias /home/$1/public_html$2;
    index index.html index.htm;
    autoindex on;
}

Ensure the user's home directory has the following permissions:

chmod 711 /home/user
chmod 755 /home/user/public_html

~~~

Last updated: 2021-11-19

Back to Techne index

Back to unixcat.coffee