httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Stevenson <t...@pc-tony.com>
Subject Re: [users@httpd] Does "Alias /foo/bar/" work?
Date Fri, 16 Nov 2007 09:35:09 GMT
Several things here Thomas,

Can you look in your errorlog  [1] and paste the error's that relate to 
this 404.
Do you have a global DirectoryIndex setup so Apache knows which file to 
serve by default, i.e.  DirectoryIndex index.html as you have not 
specified one in your vhost it will take the gloable default, if you 
have one.  Check this file exists. 

The logs will show us exaclty what is at fault here, and will help us 
diagnose the issue much more quickly


[1] Look here to find it if you dont know where it is -->  
http://wiki.apache.org/httpd/DistrosDefaultLayout


Tony





thomas Armstrong wrote:
> Hi.
>
> Using Apache 2.0 on Linux (with 'mod_alias' loaded), I want to set an alias:
> /foo1/foo2/ --> /usr/www/example/foo2/
>
> This is part of my 'httpd.conf':
> -----------
> <VirtualHost example.com>
> DocumentRoot /usr/www/example/web
> ServerName example.com
>
> Alias /foo1/foo2/  /usr/www/example/foo2/
> <Directory "/usr/www/example/foo2/">
> Options Indexes FollowSymLinks
> Order Allow,Deny
> Allow from all
> AllowOverride all
> DirectoryIndex index.php
> </Directory>
> </VirtualHost>
> ----------------
>
> But if I access:
> http://example.com/foo1/foo2/
> I get a 404 error.
>
> Any suggestion? Thank you very much.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>   

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message