| 124 | |
| 125 | Kolejnym krokiem jest modyfikacja ''/etc/apache2/mods-available'' wprowadzamy zmiany w pliku '''userdir.conf''' |
| 126 | |
| 127 | Domyślny plik w systemie Linux Debian |
| 128 | {{{ |
| 129 | <IfModule mod_userdir.c> |
| 130 | UserDir public_html |
| 131 | UserDir disabled root |
| 132 | |
| 133 | <Directory /home/*/public_html> |
| 134 | AllowOverride FileInfo AuthConfig Limit Indexes |
| 135 | Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec |
| 136 | <Limit GET POST OPTIONS> |
| 137 | Order allow,deny |
| 138 | Allow from all |
| 139 | </Limit> |
| 140 | <LimitExcept GET POST OPTIONS> |
| 141 | Order deny,allow |
| 142 | Deny from all |
| 143 | </LimitExcept> |
| 144 | </Directory> |
| 145 | </IfModule> |
| 146 | }}} |
| 147 | |
| 148 | Plik userdir.conf po modyfikacjach, do pliku dodajemy '''''HEAD REPORT''''' |
| 149 | {{{ |
| 150 | <IfModule mod_userdir.c> |
| 151 | UserDir public_html |
| 152 | UserDir disabled root |
| 153 | |
| 154 | <Directory /home/*/public_html> |
| 155 | AllowOverride FileInfo AuthConfig Limit Indexes |
| 156 | Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec |
| 157 | <Limit GET POST OPTIONS HEAD REPORT> |
| 158 | Order allow,deny |
| 159 | Allow from all |
| 160 | </Limit> |
| 161 | <LimitExcept GET POST OPTIONS HEAD REPORT> |
| 162 | Order deny,allow |
| 163 | Deny from all |
| 164 | </LimitExcept> |
| 165 | </Directory> |
| 166 | </IfModule> |
| 167 | }}} |
| 168 | |
| 169 | Po wprowadzeniu mofygikacji w pliku userdir.conf wykonujemy restart Apache |
| 170 | |
| 171 | {{{ |
| 172 | /etc/init.d/apache2 restart |
| 173 | }}} |