Hello.
I have Jaxer running locally with apache2 on Ubuntu 11.04. When I
direct my browser to localhost/aptana and run diagnostics, everything
looks ok. However, I'm getting a "Jaxer is not defined" error in
Firebug when I try to use Jaxer in an application, which I assume
means the page is not being run through Jaxer? In the past I have had
Jaxer running on this application just fine. Since then, I installed
dnsmasq and set up a virtual host to use wildcards. Here's my site
file:
--------------------------------------------------------------------------------------------------------------
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.*.dev
ServerAlias *.dev
VirtualDocumentRoot /home/wastvedt/Projects/%-2+/www
php_admin_value auto_prepend_file /home/wastvedt/Projects/
doc_root.inc
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/wastvedt/Projects>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
JaxerFilter html xhtml htm php
JaxerFilterContentType text/html application/xhtml+xml
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /home/wastvedt/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /home/wastvedt/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from
127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
--------------------------------------------------------------------------------------------------------------
and the included doc_root.inc:
--------------------------------------------------------------------------------------------------------------
<?php
$location = explode(".",$_SERVER['HTTP_HOST']);
$lurl = '';
//for($i=sizeof($location); $i>0; $i--) $lurl = '.'.$location[$i-1].
$lurl;
//$lurl = '/'.ltrim($lurl, '.');
$_SERVER['DOCUMENT_ROOT'] = '/home/wastvedt/Projects/' .
$location[sizeof($location)-2] . '/www';
?>
--------------------------------------------------------------------------------------------------------------
I haven't changed settings in my Jaxer installation since it was
working. Any ideas? Any other files I should post here? Is there
somewhere else I should go with this problem? Thanks for your help.
Trygve