Advertisement
marquessbr

erpnext.conf em httpd_conf.d

Oct 16th, 2013
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Listen 80
  2. NameVirtualHost *:80
  3. <VirtualHost *:80>
  4.     ServerName localhost.odin-lap
  5.     DocumentRoot /home/armando/erpnext/public
  6.    
  7.     AddHandler cgi-script .cgi .xml .py
  8.     AddType application/vnd.ms-fontobject .eot
  9.     AddType font/ttf .ttf
  10.     AddType font/otf .otf
  11.     AddType application/x-font-woff .woff
  12.  
  13.     <Directory /home/armando/erpnext/public/>
  14.         # directory specific options
  15.         Options -Indexes +FollowSymLinks +ExecCGI
  16.    
  17.         # directory's index file
  18.         DirectoryIndex web.py
  19.        
  20.         AllowOverride all
  21.         Order Allow,Deny
  22.         Allow from all
  23.  
  24.         # rewrite rule
  25.         RewriteEngine on
  26.         RewriteCond %{REQUEST_FILENAME} !-f
  27.         RewriteCond %{REQUEST_FILENAME} !-d
  28.         RewriteCond %{REQUEST_FILENAME} !-l
  29.         RewriteRule ^([^/]+)$ /web.py?page=$1 [QSA,L]      
  30.     </Directory>
  31. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement