💾 Archived View for unixcat.coffee › techne › nginx.gmi captured on 2022-01-08 at 13:45:41. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

🚧 View Differences

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

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

~~~

Back to Techne index

Back to unixcat.coffee