You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Morten W. Petersen" <mo...@nidelven-it.no> on 2003/07/19 18:57:45 UTC
[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
Re: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 22 Jul 2003, Morten W. Petersen wrote:
> Joshua Slive wrote:
>
> >On Tue, 22 Jul 2003, Morten W. Petersen wrote:
> >>The error log says:
> >>
> >>[Mon Jul 21 16:46:06 2003] [error] [client 80.202.17.36] Options ExecCGI
> >>is off in this directory:
> >>/home/nidelven/apache/jonagustine_lim/movable/mt.cgi
> >
> >><Directory "/home/nidelven/apache/jonagustine_lim/movable">
> >>Options +ExecCgi -Indexes
> >Apache doesn't lie here. If it says ExecCGI is off, then it probably is.
> >So here are some things to try:
> >
> >1. Look through your config file for other Options directives that may be
> >applying to this directory, and make sure they include ExecCGI.
> I'm sure of 2. As for 1, could this configuration have something to do
> with the script not running:
>
> <Directory "/home/nidelven/apache/">
> Options Indexes
No, this shouldn't have an effect because it is farther up the directory
tree and will be overriden by the more specific <Directory> section. Keep
looking.
Joshua.
---------------------------------------------------------------------
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
Re: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Posted by "Morten W. Petersen" <mo...@nidelven-it.no>.
Joshua Slive wrote:
>On Tue, 22 Jul 2003, Morten W. Petersen wrote:
>
>
>>The error log says:
>>
>>[Mon Jul 21 16:46:06 2003] [error] [client 80.202.17.36] Options ExecCGI
>>is off in this directory:
>>/home/nidelven/apache/jonagustine_lim/movable/mt.cgi
>>
>>
>
>
>
>><Directory "/home/nidelven/apache/jonagustine_lim/movable">
>>Options +ExecCgi -Indexes
>>
>>
>
>
>
>></Directory>
>>
>>
>
>Apache doesn't lie here. If it says ExecCGI is off, then it probably is.
>So here are some things to try:
>
>1. Look through your config file for other Options directives that may be
>applying to this directory, and make sure they include ExecCGI.
>
>2. Make sure you are modifying the correct config file and restarting the
>server after making config changes.
>
>
I'm sure of 2. As for 1, could this configuration have something to do
with the script not running:
<Directory "/home/nidelven/apache/">
AuthName "thinkering.com"
AuthUserFile /home/nidelven/backmeup/webdavpwds
AuthType Basic
AllowOverride None
DAV On
Options Indexes
Order allow,deny
#Example of a default read only access for general user community.
#You can handle the rest of authorization through .htaccess files.
Allow from all
<Limit HEAD GET POST OPTIONS PROPFIND>
Allow from all
</Limit>
<Limit MKCOL PUT DELETE LOCK UNLOCK COPY MOVE PROPPATCH>
Require user admin
</Limit>
</Directory>
?
Regards,
Morten W. Petersen
--
Personal Blog: http://www.blogologue.com
Company homepage: http://www.nidelven-it.no
Phone: (+47) 45 44 00 69
---------------------------------------------------------------------
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
RE: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Posted by Jeff Cohen <su...@gej-it.com>.
Also to make sure there's no .htaccess file denying you from ExecCGI do:
*note the AllowOverride None in the directory directive.
<VirtualHost 216.93.187.217>
ServerName jonlim.no-ip.com
ScriptAlias /blog/movable/ /home/nidelven/apache/jonagustine_lim/movable/
RewriteEngine On
RewriteRule ^/albums(.*) /home/nidelven/apache/jonagustine_lim/albums/$1
[L]
RewriteRule ^/gallery(.*) /home/nidelven/apache/jonagustine_lim/gallery/$1
[L]
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>
<Directory "/home/nidelven/apache/jonagustine_lim/movable">
Options +ExecCgi -Indexes
AllowOverride None
AddHandler cgi-script .cgi .pl
Allow from all
</Directory>
All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!
> -----Original Message-----
> From: Joshua Slive [mailto:joshua@slive.ca]
> Sent: Monday, July 21, 2003 8:30 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Configuring Apache (RewriteRule and
> ScriptAliasMatch)
>
>
> On Tue, 22 Jul 2003, Morten W. Petersen wrote:
> > The error log says:
> >
> > [Mon Jul 21 16:46:06 2003] [error] [client 80.202.17.36] Options ExecCGI
> > is off in this directory:
> > /home/nidelven/apache/jonagustine_lim/movable/mt.cgi
>
> > <Directory "/home/nidelven/apache/jonagustine_lim/movable">
> > Options +ExecCgi -Indexes
>
> > </Directory>
>
> Apache doesn't lie here. If it says ExecCGI is off, then it probably is.
> So here are some things to try:
>
> 1. Look through your config file for other Options directives that may be
> applying to this directory, and make sure they include ExecCGI.
>
> 2. Make sure you are modifying the correct config file and restarting the
> server after making config changes.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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
Re: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 22 Jul 2003, Morten W. Petersen wrote:
> The error log says:
>
> [Mon Jul 21 16:46:06 2003] [error] [client 80.202.17.36] Options ExecCGI
> is off in this directory:
> /home/nidelven/apache/jonagustine_lim/movable/mt.cgi
> <Directory "/home/nidelven/apache/jonagustine_lim/movable">
> Options +ExecCgi -Indexes
> </Directory>
Apache doesn't lie here. If it says ExecCGI is off, then it probably is.
So here are some things to try:
1. Look through your config file for other Options directives that may be
applying to this directory, and make sure they include ExecCGI.
2. Make sure you are modifying the correct config file and restarting the
server after making config changes.
Joshua.
---------------------------------------------------------------------
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
Re: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Posted by "Morten W. Petersen" <mo...@nidelven-it.no>.
The webpage says:
Forbidden
You don't have permission to access /blog/movable/mt.cgi on this server.
------------------------------------------------------------------------
Apache/1.3.27 Server at jonlim.no-ip.com Port 80
The error log says:
[Mon Jul 21 16:46:06 2003] [error] [client 80.202.17.36] Options ExecCGI
is off in this directory:
/home/nidelven/apache/jonagustine_lim/movable/mt.cgi
The configuration file looks like this:
<VirtualHost 216.93.187.217>
ServerName jonlim.no-ip.com
ScriptAlias /blog/movable/ /home/nidelven/apache/jonagustine_lim/movable/
RewriteEngine On
RewriteRule ^/albums(.*)
/home/nidelven/apache/jonagustine_lim/albums/$1 [L]
RewriteRule ^/gallery(.*)
/home/nidelven/apache/jonagustine_lim/gallery/$1 [L]
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>
<Directory "/home/nidelven/apache/jonagustine_lim/movable">
Options +ExecCgi -Indexes
AddHandler cgi-script .cgi .pl
Allow from all
</Directory>
Jeff Cohen wrote:
>But what are the errors that you get this time??
>Also what does the error log say?
>
>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: Sunday, July 20, 2003 2:10 PM
>>To: users@httpd.apache.org
>>Subject: Re: [users@httpd] Configuring Apache (RewriteRule and
>>ScriptAliasMatch)
>>
>>Unfortunately, that didn't work. :\
>>
>>I tried a new configuration as well:
>>
>><VirtualHost 216.93.187.217>
>>ServerName jonlim.no-ip.com
>>ScriptAlias /blog/movable/ /home/nidelven/apache/jonagustine_lim/movable/
>>RewriteEngine On
>> RewriteRule ^/albums(.*)
>>/home/nidelven/apache/jonagustine_lim/albums/$1 [L]
>> RewriteRule ^/gallery(.*)
>>/home/nidelven/apache/jonagustine_lim/gallery/$1 [L]
>> 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>
>>
>><Directory "/home/nidelven/apache/jonagustine_lim/movable">
>>Options +ExecCgi -Indexes
>>AddHandler cgi-script .cgi .pl
>>Allow from all
>></Directory>
>>
>>But that didn't work either. Would putting the ScriptAlias after the
>>RewriteRule to the trick perhaps?
>>
>>I'm really stuck here, reading the module documentation isn't of much
>>help, is there any other place I
>>could look for help?
>>
>>Jeff Cohen wrote:
>>
>>
>>
>>>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
>>>
>>>
>>>
>>>
>>>
>>--
>>
>>Personal Blog: http://www.blogologue.com
>>Company homepage: http://www.nidelven-it.no
>>Phone: (+47) 45 44 00 69
>>
>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>
--
Personal Blog: http://www.blogologue.com
Company homepage: http://www.nidelven-it.no
Phone: (+47) 45 44 00 69
RE: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Posted by Jeff Cohen <su...@gej-it.com>.
But what are the errors that you get this time??
Also what does the error log say?
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: Sunday, July 20, 2003 2:10 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Configuring Apache (RewriteRule and
> ScriptAliasMatch)
>
> Unfortunately, that didn't work. :\
>
> I tried a new configuration as well:
>
> <VirtualHost 216.93.187.217>
> ServerName jonlim.no-ip.com
> ScriptAlias /blog/movable/ /home/nidelven/apache/jonagustine_lim/movable/
> RewriteEngine On
> RewriteRule ^/albums(.*)
> /home/nidelven/apache/jonagustine_lim/albums/$1 [L]
> RewriteRule ^/gallery(.*)
> /home/nidelven/apache/jonagustine_lim/gallery/$1 [L]
> 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>
>
> <Directory "/home/nidelven/apache/jonagustine_lim/movable">
> Options +ExecCgi -Indexes
> AddHandler cgi-script .cgi .pl
> Allow from all
> </Directory>
>
> But that didn't work either. Would putting the ScriptAlias after the
> RewriteRule to the trick perhaps?
>
> I'm really stuck here, reading the module documentation isn't of much
> help, is there any other place I
> could look for help?
>
> Jeff Cohen wrote:
>
> >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
> >
> >
> >
>
>
> --
>
> Personal Blog: http://www.blogologue.com
> Company homepage: http://www.nidelven-it.no
> Phone: (+47) 45 44 00 69
>
>
>
> ---------------------------------------------------------------------
> 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
Re: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Posted by "Morten W. Petersen" <mo...@nidelven-it.no>.
Unfortunately, that didn't work. :\
I tried a new configuration as well:
<VirtualHost 216.93.187.217>
ServerName jonlim.no-ip.com
ScriptAlias /blog/movable/ /home/nidelven/apache/jonagustine_lim/movable/
RewriteEngine On
RewriteRule ^/albums(.*)
/home/nidelven/apache/jonagustine_lim/albums/$1 [L]
RewriteRule ^/gallery(.*)
/home/nidelven/apache/jonagustine_lim/gallery/$1 [L]
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>
<Directory "/home/nidelven/apache/jonagustine_lim/movable">
Options +ExecCgi -Indexes
AddHandler cgi-script .cgi .pl
Allow from all
</Directory>
But that didn't work either. Would putting the ScriptAlias after the
RewriteRule to the trick perhaps?
I'm really stuck here, reading the module documentation isn't of much
help, is there any other place I
could look for help?
Jeff Cohen wrote:
>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
>
>
>
--
Personal Blog: http://www.blogologue.com
Company homepage: http://www.nidelven-it.no
Phone: (+47) 45 44 00 69
---------------------------------------------------------------------
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
RE: [users@httpd] Configuring Apache (RewriteRule and ScriptAliasMatch)
Posted by Jeff Cohen <su...@gej-it.com>.
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