fixes #823
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
echo "This script will:
|
echo "This script will:
|
||||||
1) Install modules needed to run web2py on Fedora and CentOS/RHEL
|
1) Install modules needed to run web2py on Fedora and CentOS/RHEL
|
||||||
2) Install Python 2.6 to /opt and recompile wsgi if not provided
|
2) Install Python 2.6 to /opt and recompile wsgi if not provided
|
||||||
@@ -27,7 +28,7 @@ Press ENTER to continue...[ctrl+C to abort]"
|
|||||||
|
|
||||||
read CONFIRM
|
read CONFIRM
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Phase 0 - This may get messy. Lets work from a temporary directory
|
### Phase 0 - This may get messy. Lets work from a temporary directory
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
echo "This script will:
|
echo "This script will:
|
||||||
1) install all modules need to run web2py on Ubuntu 14.04
|
1) install all modules need to run web2py on Ubuntu 14.04
|
||||||
2) install web2py in /home/www-data/
|
2) install web2py in /home/www-data/
|
||||||
@@ -12,7 +13,7 @@ Press a key to continue...[ctrl+C to abort]"
|
|||||||
|
|
||||||
read CONFIRM
|
read CONFIRM
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
# optional
|
# optional
|
||||||
# dpkg-reconfigure console-setup
|
# dpkg-reconfigure console-setup
|
||||||
# dpkg-reconfigure timezoneconf
|
# dpkg-reconfigure timezoneconf
|
||||||
@@ -88,9 +89,27 @@ WSGIDaemonProcess web2py user=www-data group=www-data
|
|||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
|
||||||
RewriteEngine On
|
WSGIProcessGroup web2py
|
||||||
RewriteCond %{HTTPS} !=on
|
WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
|
||||||
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
WSGIPassAuthorization On
|
||||||
|
|
||||||
|
<Directory /home/www-data/web2py>
|
||||||
|
AllowOverride None
|
||||||
|
Require all denied
|
||||||
|
<Files wsgihandler.py>
|
||||||
|
Require all granted
|
||||||
|
</Files>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) \
|
||||||
|
/home/www-data/web2py/applications/$1/static/$2
|
||||||
|
|
||||||
|
<Directory /home/www-data/web2py/applications/*/static/>
|
||||||
|
Options -Indexes
|
||||||
|
ExpiresActive On
|
||||||
|
ExpiresDefault "access plus 1 hour"
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
CustomLog /var/log/apache2/access.log common
|
CustomLog /var/log/apache2/access.log common
|
||||||
ErrorLog /var/log/apache2/error.log
|
ErrorLog /var/log/apache2/error.log
|
||||||
|
|||||||
Reference in New Issue
Block a user