# Sample httpd.conf extension ot start wnframework # Port on which you want to run wnframework Listen 8080 NameVirtualHost *:8080 ServerName localhost # your erpnext folder DocumentRoot /var/www/erpnext/public/ AddHandler cgi-script .cgi .xml .py AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/x-font-woff .woff # directory specific options Options -Indexes +FollowSymLinks +ExecCGI # directory's index file DirectoryIndex web.py AllowOverride all Order Allow,Deny Allow from all # rewrite rule RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^([^/]+)$ /web.py?page=$1 [QSA,L]