
	Alias /mobyle /usr/share/mobyle/htdocs

        RewriteEngine on
        #Support v0.97 URLs
        RewriteCond     %{REQUEST_URI}  ^/cgi-bin/mobyle/portal.py
        RewriteCond     %{QUERY_STRING}     form=(.*)
        RewriteRule     .*              /cgi-bin/mobyle/portal.py?#forms::%1 [NE,R,L]
        #Support v0.97 URLs
        RewriteCond     %{REQUEST_URI}  ^/cgi-bin/mobyle/portal.py
        RewriteCond     %{QUERY_STRING}     jobs=http://(.*)/(.*)/(.*)/(.*)/(.*)
        RewriteRule     .*              /cgi-bin/mobyle/portal.py?#jobs::%4.%5 [NE,R,L]

        RewriteCond %{REQUEST_URI}  ^/mobyle/data/jobs(\.*)
        RewriteCond %{QUERY_STRING} ^save$
        RewriteRule  (.*)/([^/]+)$   $1/$2 [E=SAVEDFILENAME:$2]
        Header set Content-Disposition "attachment; filename=\"%{SAVEDFILENAME}e\"" env=SAVEDFILENAME


        <Directory "/usr/lib/cgi-bin/mobyle">
          Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
          AllowOverride None
          Options FollowSymLinks
          Order allow,deny
          Allow from all
          SetEnv MOBYLEHOME /usr/share/mobyle/core
          AddDefaultCharset ISO-8859-1
        </Directory>

	<Directory "/usr/share/mobyle/htdocs">
		Options -Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>


