http://localhost/~user

Mark Haney mhaney at ercbroadband.org
Thu Oct 9 14:26:24 UTC 2008


v m wrote:
> I changed my document root to /home/www/docs.v2 ;  I have two 
> folders in /home/www/ (news and events).  Those directories are outside the 
> document root.
> 
> In httpd.conf, I have Alias setup as 
> Alias /news /home/www/news
> <Directory /home/www/news/>
>    Order allow,deny
>    Allow from all
> </Directory>
> 
> When I access http://local host/~news I get page cannot be found error. In the error log, it is appending news to the document root instead of  /home/www. Can anyone tell what I could be missing? 
>  
> From Error-log: [Wed Oct 08 22:08:58 2008] [error] [client 111.111.1.111] File does not exist: /home/www/docs.v2/~news
> 
> 
> 
> 
>       
> 

Probably because of the ~.  Why do you have that in there?  I've never 
needed that character when accessing an alias.




-- 
Libenter homines id quod volunt credunt -- Caius Julius Caesar


Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415

Call (866) ERC-7110 for after hours support




More information about the ubuntu-users mailing list