Apache2 : Enable Userdir2019/01/25 |
Enable userdir, users can create websites with this setting.
|
|
[1] | Enable userdir. |
www:~ # a2enmod userdir www:~ # a2enmod -l actions alias auth_basic authn_core authn_file authz_host authz_groupfile authz_core authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl socache_shmcb userdir reqtimeout php7 |
[2] | Create a test page with a user and access to it from client PC with web browser. It's OK if following page is shown. |
suse@www:~> mkdir public_html suse@www:~> chmod 711 /home/suse suse@www:~> chmod 755 /home/suse/public_html
suse@www:~>
vi ./public_html/index.html <html> <body> <div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;"> UserDir Test Page </div> </body> </html> |
Sponsored Link |
|