Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Listen 80
- NameVirtualHost *:80
- <VirtualHost *:80>
- ServerName localhost.odin-lap
- DocumentRoot /home/armando/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 /home/armando/erpnext/public/>
- # 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]
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement