public_html web server - without mod_userdir
Hell, what does the title mean??
It means this :
Allow people to put files in the public_html folder in their home directories and allow it to be seen through the web server of that server in this format : http://servername/~username/hisorherfiles
Most people use mod_userdir to allow ~username directories in their webservers. However, there is simple rewrite rule workaround that eliminates the need for mod_userdir. I needed this because we had the home directories on the server, but the users had no login accounts on the server and they needed their public_html to work.
Here is how it goes :
1 | #First, disable the default thing : |
public_html web server - without mod_userdir
https://doku.dev/post/2008/public-html-web-server-without-mod-userdir/