After having installed httpd I started it and my browser displayed the default Apache start page when i pointed it at serverB.
The webpage i actually want to access is on serverB at
~jody/public_html/index.html
I added a few lines to httpd.conf (copied from a httpd.conf on our old (CentOS6) server)
Code: Select all
LoadModule userdir_module modules/mod_userdir.so
Code: Select all
<IfModule mod_userdir.c>
UserDir "enabled *"
UserDir "disabled root"
UserDir public_html
</IfModule>
Code: Select all
Redirect permanent /jody http://serverB.uzh.ch/~jody
<Directory "/home/serverB/">
Deny from all
</Directory>
<Directory "/home/serverB/jody">
Allow from all
AllowOverride All
</Directory>
<Directory "/home/">
Options Indexes FollowSymLinks
AllowOverride None
Deny from all
</Directory>
systemctl restart httpd.service
returned no error.
But when i point my browser at http://serverB.uzh.ch/~jody
I get a 404:
Code: Select all
The requested URL /~jody was not found on this server.
if i put a simple index.html into /var/www/html it is displayed correctly when i point my browser at http://serverB.uzh.ch/.
[end edit]
What do i have to do to display webpages situated in home directories?