Kod: Zaznacz cały
debian:/etc/apache2/mods-enabled# ls -al rewrite* userdir*
lrwxrwxrwx 1 root root 30 09-15 13:09 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 30 09-15 13:08 userdir.conf -> ../mods-available/userdir.conf
lrwxrwxrwx 1 root root 30 09-15 13:08 userdir.load -> ../mods-available/userdir.load
W pliku
Kod: Zaznacz cały
/etc/apache2/sites-available/default
Kod: Zaznacz cały
Alias /sebastian/ "/home/sebastian/public_html/"
<Directory /home/sebastian/public_html/>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
Kod: Zaznacz cały
/etc/apache2/mods-available/userdir.conf
Kod: Zaznacz cały
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</IfModule>
Kod: Zaznacz cały
Options FollowSymLinks
RewriteEngine on
RewriteBase /~sebastian/public_html/tantric/
RewriteRule ^index.html$ index.php [L]
Kod: Zaznacz cały
http://localhost/sebastian/tantric/index.html
Kod: Zaznacz cały
The requested URL /~sebastian/public_html/tantric/index.php was not found on this server.