httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <supp...@gej-it.com>
Subject RE: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Date Sat, 19 Jul 2003 19:02:49 GMT
Try:

<VirtualHost 216.93.187.217>
ServerName jonlim.no-ip.com
RewriteEngine On
  RewriteRule ^/gallery(.*) 
/home/nidelven/apache/jonagustine_lim/gallery/$1 [L]
  ScriptAliasMatch ^/blog/movable(.*) 
/home/nidelven/apache/jonagustine_lim/movable/$1
  RewriteRule ^/blog(.*) /home/nidelven/apache/jonagustine_lim/$1 [L]
  RewriteRule ^/(.*) 
http://216.93.187.217:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P]
<Directory /home/nidelven/apache/jonagustine_lim/movable>
Options +ExecCgi -Indexes 
AddHandler cgi-script .cgi .pl
Allow from all
</VirtualHost>

Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: Morten W. Petersen [mailto:morten@nidelven-it.no]
> Sent: Saturday, July 19, 2003 12:58 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Configuring Apache (RewriteRule and
ScriptAliasMatch)
> 
> Hi all,
> 
> I'm having some difficulties configuring Apache to server
> Zope at the root, and having a Movable Type weblog accessible
> 'beneath it':
> 
> <VirtualHost 216.93.187.217>
> ServerName jonlim.no-ip.com
> RewriteEngine On
>   RewriteRule ^/gallery(.*)
> /home/nidelven/apache/jonagustine_lim/gallery/$1 [L]
>   ScriptAliasMatch ^/blog/movable(.*)
> /home/nidelven/apache/jonagustine_lim/movable/$1
>   RewriteRule ^/blog(.*) /home/nidelven/apache/jonagustine_lim/$1 [L]
>   RewriteRule ^/(.*)
> http://216.93.187.217:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P]
> </VirtualHost>
> 
> The URL http://jonlim.no-ip.com/blog/movable/mt.cgi brings up
> the error:
> 
> Forbidden
> You don't have permission to access /blog/movable/mt.cgi on this server.
> 
> What's wrong here?
> 
> Thanks in advance,
> 
> Morten W. Petersen
> 
> 
> 
> ---------------------------------------------------------------------
> 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