Thanks Brad, looking forward to seeing those files once you get back
on site.  So is it using the A4D virtualhosts.ini file at all?

If I add the DirectoryIndex index.a4d to the apache virtual host conf,
it works as expected.
But I still have the issue that the proxy seems to be using the A4D
virtualhosts for a directory, but not for an index file.  I can change
the proxy location to use the proper A4D virtual host, but that seems
overkill if I can specify it all in the apache conf.

Am I understanding this correctly?

On Nov 20, 2007 2:19 PM, Bradley D. Perkins <[EMAIL PROTECTED]> wrote:
> Michael,
>
> I'm off site and don't have access to our server's config files right now
> so I cant provide the exact rules, but basically I recall that you need to
> add a rule that matches a RewriteCond on / and have that rule proxy to
> index.a4d.
>
> -- Brad
>
>
> > I've followed the instr at the wiki:
> > http://aparajita.pbwiki.com/A4D-Apache+Configuration
> >
> > We are using Apache 1.3.33, instead of 2.x like the example shows.
> >
> > However, it works fine, with only the mod_proxy and the mod_rewrite
> > rules set up as in the httpd.conf
> >
> > The issue comes with serving the default page.  I'm not sure where it
> > should be picking up the default page instruction, virtualhosts.ini or
> > httpd.conf...
> >
> > active4D.ini is set to use index.a4d as the default document,
> > httpd.conf is set to use index.php index.html
> >
> > We're using 2004.5 standalone, serving on port 8080.
> >
> > Here are the files:
> >
> > virtualhosts.ini
> > *                             mrteeny.sologroup.com:8080      *             
> >   sites/site1                                     *
> > *                             localhost:8080                          *     
> >           sites/defaultsite                       index.a4d
> > 10.101.11.104 @:8080                                          *             
> >   sites/defaultsite                       index.a4d
> >
> > sites.conf (loaded into httpd)
> > NameVirtualHost *:80
> > <VirtualHost localhost:80>
> >     DocumentRoot "/Users/mcheck/Desktop/A4D-sandbox/sites/defaultsite"
> >       <Directory />
> >         Options FollowSymLinks
> >         AllowOverride All
> >         Allow from all
> >       </Directory>
> >
> >       RewriteEngine on
> >       RewriteMap lowercase int:tolower
> >       RewriteMap uppercase int:toupper
> >
> >       # Rewrite for Active4D GET requests
> >       RewriteCond %{REQUEST_METHOD} GET [NC]
> >       RewriteRule ^(/4[dD][cC][gG][iI])?(.+)(\.a4d|\.a4p|\.asp)(\?.*)?
> > http://10.101.11.104:8080$2$3$4 [P,L]
> >
> >       # Rewrite for Active4D POST requests
> >       RewriteCond %{REQUEST_METHOD} POST [NC]
> >       RewriteRule ^(/4[dD][cC][gG][iI])?(.+)(\.a4d|\.a4p|\.asp)(\?.*)?
> > http://10.101.11.104:8080/4dcgi$2$3$4 [P,L]
> >       # if we have a filename with lowercase suffixes and it doesn't exist,
> > make it uppercase
> >       RewriteCond %{REQUEST_FILENAME} (_|-)[a-z][a-z]\.(pdf|gif|jpg)
> >       RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
> >       RewriteRule ^/(.*)(_|-)([a-z][a-z])\.(pdf|gif|jpg)
> > /$1$2${uppercase:$3}.$4 [L]
> >
> >       # if we have a filename with uppercase suffixes and it doesn't exist,
> > make it lowercase
> >       RewriteCond %{REQUEST_FILENAME} (_|-)[A-Z][A-Z]\.(pdf|gif|jpg)
> >       RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
> >       RewriteRule ^/(.*)(_|-)([A-Z][A-Z])\.(pdf|gif|jpg)
> > /$1$2${lowercase:$3}.$4 [L]
> >
> > </VirtualHost>
> >
> >
> > If I load
> > localhost/index.a4d
> > I get my page
> >
> > If I load
> > localhost
> > I get:
> > Forbidden
> > You don't have permission to access / on this server.
> > Apache/1.3.33 Server at localhost Port 80
> >
> > The apache error log says:
> > [Tue Nov 20 13:47:13 2007] [error] [client 127.0.0.1] Directory index
> > forbidden by rule:
> > /Users/mcheck/Desktop/A4D-sandbox/sites/defaultsite/
> >
> > So it would seem that a rule is disallowing the ndex page, but I
> > cannot figure out which rule...  Or where...
> >
> >
> > Thanks,
> >
> > Michael Check
> > _______________________________________________
> > Active4D-dev mailing list
> > [email protected]
> > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> > Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
> >
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>



-- 
Thanks,

Michael Check
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to