This is a discussion on Using Aliases with VirtualDocumentRoot doesn't work within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi I've set up a Debian development server here at home. The aim was to provide an easy way ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
I've set up a Debian development server here at home. The aim was to provide an easy way to access all my projects by using a URL like <project>.dev.emeidi.local I therefore set up BIND the correct way and added the following lines to httpd.conf, at the bottom: VirtualDocumentRoot /var/www/%1 VirtualScriptAlias /var/www/cgi-bin/ There are some directories I'd like to show its content as listing. I therefore created a .htaccess-File with the following settings: Options Indexes IndexOptions +FoldersFirst IndexOptions +NameWidth=48 IndexOptions +SuppressColumnSorting IndexOptions +SuppressDescription The listing appears, but the icons aren't being displayed, a broken image appears instead. When looking at the error.log, it says: [Mon Oct 4 17:06:26 2004] [error] [client 192.168.0.102] File does not exist: /var/www/project/icons/sound2.gif Well, but I remember there was this Alias-setup in httpd.conf which says: <IfModule mod_alias.c> Alias /icons/ /usr/share/apache/icons/ <Directory /usr/share/apache/icons> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Why is this Alias not resolved? Should be correct. Any clues? Thanks for any help Kind regards Mario |