I definitely do not understand fully what is happeneing with the
apache rewrite rules.

Even though I specify the apache virtual host document root:

sites.conf (loaded into httpd)
NameVirtualHost *:80
<VirtualHost localhost:80>
  DocumentRoot "/Users/mcheck/Desktop/A4D-sandbox/sites/defaultsite"

This line in the rewrite rules, sends it to the IP address of my A4D
machine (happens to be localhost):

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

which gets interpreted by the A4D virtual hosts file:

virtualhosts.ini
*                             mrteeny.sologroup.com:8080      *
       sites/site1                                     *
*                             localhost:8080
*               sites/defaultsite                       index.a4d
10.101.11.104 @:8080                                          *
       sites/site1                       index.a4d

and retrieves the pages from the folder sites/site1.  DIFFERENT than
the one I set as apache root.

So I need the A4D virtual hosts file as well, right?

If I empty the A4D virtual hosts file, and just the use the settings
from Active4D.ini, it will try to pull all files form the web folder.
So I cannot have multiple sites.

Can anyone pls help to clarify the entire configuration?  I would be
happy to upload it to the A4D wiki once I get it configured.

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