[ic] Rewrite rules kill forms

Gert van der Spoel gert at 3edge.com
Wed Jul 18 07:19:32 EDT 2007


-----Original Message-----
> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-
> users-bounces at icdevgroup.org] On Behalf Of Ton Verhagen
> Sent: woensdag 18 juli 2007 13:50
> To: interchange-users at icdevgroup.org
> Subject: Re: [ic] Rewrite rules kill forms
> 
> At 12:02 PM 7/18/2007,
> Racke wrote:
> >[snip]
> > >> You don't need complicate things with using Rewrite. Alias
> directives
> > >> are working just fine.
> > >>
> > >> Alias /images/ /home/racke/linuxia/html/images/
> > >> Alias /css/ /home/racke/linuxia/html/css/
> > >> Alias /js/ /home/racke/linuxia/html/js/
> > >> Alias /interchange-5/ /var/www/interchange-5/
> > >> Alias /favicon.ico /home/racke/linuxia/html/favicon.ico
> > >> ScriptAlias /cgi-bin/ /home/linuxia/linuxia.de/cgi-bin/
> > >> ScriptAliasMatch ^/(.*)$ /home/linuxia/linuxia.de/cgi-
> bin/linuxia/$1
> > >
> > > Looks like an excellent alternative.
> > >
> > > After implemented your Alias directive solution I get an HTTP 404
> error
> > > when accessing an existing catalog page .
> > >
> > > Am I still missing something?
> >
> >The logs are your friend :-).
> 
> Just a simple message in the access log:
>          GET /index.html HTTP/1.1" 404 19
> 
> and No log line in Apache error log.
> 
> 
> The virtual host section contains:
> 
>      ServerName www.mydomain.com
>      ServerAlias mydomain.com
>      ServerAdmin webmaster at mydomain.com
>      DocumentRoot /opt/guide/www.mydomain.com/HTML
> 
>      Alias /images/ /opt/guide/www.mydomain.com/HTML/images/
>      Alias /inc/ /opt/guide/www.mydomain.com/HTML/inc/
>      Alias /interchange-5/
> /opt/guide/www.mydomain.com/HTML/interchange-5/
>      Alias /robots.txt /opt/guide/www.mydomain.com/HTML/robots.txt
>      Alias /favicon.ico /opt/guide/www.mydomain.com/HTML/favicon.ico
> 
>      ScriptAlias /cgi-bin/ /opt/guide/www.mydomain.com/cgi-bin/
> 
>      ScriptAliasMatch ^/(.*)$ /opt/guide/www.mydomain.com/cgi-
> bin/mycatalog/$1
> 
> 
> without the ScriptAliasMatch everything works as before.
> 
> What could be wrong?

To toss in another obvious one:  is your Interchange daemon in /cgi-bin/
or perhaps in the DocumentRoot in this case? So you'd have to leave out the
'cgi-bin' part?

CU,

Gert 



More information about the interchange-users mailing list