forked from gruporealizemoveis/wnframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache.conf
executable file
·36 lines (29 loc) · 858 Bytes
/
apache.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Sample httpd.conf extension ot start wnframework
# Port on which you want to run wnframework
Listen 8080
NameVirtualHost *:8080
<VirtualHost *: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 /var/www/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>