Listen 8080<o:p></o:p>
NameVirtualHost :8080<o:p></o:p>
<VirtualHost :8080><o:p></o:p>
ServerName localhost<o:p></o:p>
DocumentRoot /var/www/erpnext/public/<o:p></o:p>
AddHandler cgi-script .cgi .xml .py<o:p></o:p>
<o:p> </o:p>
<Directory /var/www/erpnext/public/><o:p></o:p>
# directory specific options<o:p></o:p>
Options -Indexes +FollowSymLinks +ExecCGI<o:p></o:p>
<o:p></o:p>
# directory’s index file<o:p></o:p>
DirectoryIndex web.py<o:p></o:p>
<o:p> </o:p>
# rewrite rule<o:p></o:p>
RewriteEngine on<o:p></o:p>
<o:p></o:p>
# condition 1:<o:p></o:p>
# ignore login-page.html, app.html, blank.html, unsupported.html<o:p></o:p>
RewriteCond %{REQUEST_URI} ^((?!app.html|blank.html|unsupported.html).)*$<o:p></o:p>
<o:p></o:p>
# condition 2: if there are no slashes<o:p></o:p>
# and file is .html or does not containt a .<o:p></o:p>
RewriteCond %{REQUEST_URI} ^(?!.+/)((.+.html)|([^.]+))$<o:p></o:p>
<o:p> </o:p>
# rewrite if both of the above conditions are true<o:p></o:p>
RewriteRule ^(.+)$ web.py?page=$1 [NC,L]<o:p></o:p>
<o:p></o:p>
AllowOverride all<o:p></o:p>
Order Allow,Deny<o:p></o:p>
Allow from all<o:p></o:p>
</Directory><o:p></o:p>
</VirtualHost><o:p></o:p>