Вася Патриков
Новичок
работа директивы Alias
Здравствуйте. Помогите разобраться с алиасами.
OS: Win XP 2k
web-server: Apache 2.2.3
В конфиге апача имеется запись о вирт. хосте :
<VirtualHost 127.0.0.1:80>
DocumentRoot C:/www/htdocs/templater
ServerName templater
Alias /outside/ "D:/Alias/outside"
</VirtualHost>
А так же: DirectoryIndex index.html index.php
В D:/Alias/outside лежит index.html. Так вот, когда я набираю в браузере http://templater/outside/ то мне выводится:
Index of /outside
* Parent Directory
* index.html
Ссылка с Parent Directory ведёт на http://templater - ну да ладно, чёрт с ней. С index.html - на http://templater/outside/index.html , но при клике по ней я получаю:
Not Found. The requested URL /outside/index.html was not found on this server. Вопрос 1 - почему ? 2 - почему выводится содержимое D:/Alias/outside, а не отображение index.html ? 3 - директиву alias можно использовать в .htaccess ?
Здравствуйте. Помогите разобраться с алиасами.
OS: Win XP 2k
web-server: Apache 2.2.3
В конфиге апача имеется запись о вирт. хосте :
<VirtualHost 127.0.0.1:80>
DocumentRoot C:/www/htdocs/templater
ServerName templater
Alias /outside/ "D:/Alias/outside"
</VirtualHost>
А так же: DirectoryIndex index.html index.php
В D:/Alias/outside лежит index.html. Так вот, когда я набираю в браузере http://templater/outside/ то мне выводится:
Index of /outside
* Parent Directory
* index.html
Ссылка с Parent Directory ведёт на http://templater - ну да ладно, чёрт с ней. С index.html - на http://templater/outside/index.html , но при клике по ней я получаю:
Not Found. The requested URL /outside/index.html was not found on this server. Вопрос 1 - почему ? 2 - почему выводится содержимое D:/Alias/outside, а не отображение index.html ? 3 - директиву alias можно использовать в .htaccess ?