httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Fellows <lfell...@4lane.com>
Subject Re: [users@httpd] Re: AliasMatch Error: HowTo remove ~ in URL
Date Wed, 05 Mar 2003 22:00:17 GMT
On Wed, 2003-03-05 at 16:38, Manu Kits wrote:
> Here is the snippet of my HTTPD.CONF file:
> 
> -------------------------------------------------------------------------------------
> DocumentRoot "/usr/local/apache/htdocs"
> 
> <Directory />
>     Options +FollowSymLinks +Indexes
>     AllowOverride None
> </Directory>
> 
> <Directory /home/hari>
>     Options +FollowSymLinks +Indexes
>     Order allow,deny
>     Allow from all
> </Directory>
> 
> 
> <Directory "/usr/local/apache/htdocs">
>     Options +FollowSymLinks MultiViews
>     AllowOverride All
>     Order allow,deny
>     Allow from all
> </Directory>
> 
> UserDir public_html
> 
> <Directory /home/*/public_html>
>     AllowOverride FileInfo AuthConfig Limit
>     Options +FollowSymLinks +Indexes
>     <Limit GET POST OPTIONS PROPFIND>
>         Order allow,deny
>         Allow from all
>     </Limit>
>     <LimitExcept GET POST OPTIONS PROPFIND>
>         Order deny,allow
>         Deny from all
>     </LimitExcept>
> </Directory>
> 
> 
> -------------------------------------------------------------------------------------
> 
> I have a UNIX SYSTEM USER 'hari' whose HOME dir is /home/hari.
> I have also CREATED SYMBOLIC LINK of /home/hari in 
> /usr/local/apache/htdocs/hari
> 
> What I need is that when I type www.hostname.com/hari/index.html, it should 
> DISPLAY page from /home/hari/public_html/index.html
> 
> 
> When I do this I get following message:
> ------------------------------------------------------------------------------------------------
> Forbidden
> You don't have permission to access /hari/index.html on this server.
> 
> Additionally, a 404 Not Found error was encountered while trying to use an 
> ErrorDocument to handle the request.
> ------------------------------------------------------------------------------------------------
> 
> My ERROR_LOG file shows following:
> ------------------------------------------------------------------------------------------------
> [Wed Mar  5 14:38:33 2003] [notice] Accept mutex: pthread (Default: pthread)
> [Wed Mar  5 14:38:42 2003] [error] Symbolic link not allowed: 
> /usr/local/apache/htdocs/hari/
> [Wed Mar  5 14:38:42 2003] [error] File does not exist: 
> /usr/local/apache/htdocs/error_doc.html
> ------------------------------------------------------------------------------------------------
> 
> I tried adding Alias /hari /home/hari/public_html but still NOT working!!!!
> 
> Any suggestions is welcome.
> 
> THANKS!

  This is much better.  My first thought is that you want to catch
  and re-write requests of the form of /<some user>/<some page>
  to the UserDir form /~<some user>/public_html/<some page>.

  Something along the lines of:
  RewriteCond %{REQUEST_URI} !^/~.*$
  RewriteRule ^/([^/]*)/(.*)$ /home/$1/public_html/$2

  This is totally untested and grossly general, but may give you
  a direction to try.

> 
> 
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*  
> http://join.msn.com/?page=features/virus
> 
> 
> ---------------------------------------------------------------------
> 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
-- 
Lee Fellows <lfellows@4lane.com>


---------------------------------------------------------------------
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