[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-16 Thread lucas
alright, well this has me thinking towards a whole new http server.  i just 
might do it very soon, especially since it just a yum/rpm package on centos 
already.  thank you all for your input.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-14 Thread Alex Beskopilny
also, it's very useful sslh https://github.com/yrutschle/sslh
works fine with nginx

суббота, 10 февраля 2018 г., 17:11:43 UTC+3 пользователь lucas написал:
>
> hey all,
>
> setting up a new server on centos 7.4 and apache 2.4.  web2py is running 
> fine for i get the welcome content but none of the files under static are 
> coming down to the client. please makes suggestions.  thank you.
>
> lucas
>
> here is my default.conf file where you'll see i've tried a bunch of 
> options.  nothing worked so far.:
>
>
>
>
> NameVirtualHost *:80 
> NameVirtualHost *:443 
>
>
>  
> WSGIProcessGroup web2py 
> # WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP} 
> WSGIPassAuthorization On 
>
>  
> AllowOverride None 
> Order Allow,Deny 
> Deny from all 
>  
> Require all granted 
> Allow from all 
>  
>  
>
> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/\$1/static/\$2 
> # AliasMatch ^/([^/]+)/static/(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2 
>
>  
> # Options -Indexes 
> Order Allow,Deny 
> Allow from all 
> # Require all granted 
>  
>
>  
> Deny from all 
>  
>
>  
> Deny from all 
>  
>
> CustomLog /var/log/httpd/access_log common 
> ErrorLog /var/log/httpd/error_log 
>  
>
>  
> # SSLEngine on 
> # SSLCertificateFile /etc/httpd/ssl/self_signed.cert 
> # SSLCertificateKeyFile /etc/httpd/ssl/self_signed.key 
>
> WSGIProcessGroup web2py 
> # WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP} 
> WSGIPassAuthorization On 
>
>  
> AllowOverride None 
> Order Allow,Deny 
> Deny from all 
>  
> Require all granted 
> Allow from all 
>  
>  
>
> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/\$1/static/\$2 
> # AliasMatch ^/([^/]+)/static/(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2 
>
>  
> # Options -Indexes 
> # ExpiresActive On 
> # ExpiresDefault "access plus 1 hour" 
> Order Allow,Deny 
> Allow from all 
> # Require all granted 
>  
>
> CustomLog /var/log/httpd/access_log common 
> ErrorLog /var/log/httpd/error_log 
> 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-14 Thread Alex Beskopilny
we use nginx with http2
rebuild nginx with http2 support on centos 7
-
export NXT_CC_NAME=gcc # default compiller for nginx

OPENSSL="openssl-1.0.2h" # ok with nginx-1.11.13-1
OPENSSL="openssl-1.1.0f" # ok with nginx-1.11.13-1
NGINX="nginx-1.11.13-1"
#NGINX="nginx-1.13.5-1"


mkdir -p /opt/lib
wget https://www.openssl.org/source/$OPENSSL.tar.gz -O 
/opt/lib/$OPENSSL.tar.gz
tar -zxvf /opt/lib/$OPENSSL.tar.gz -C /opt/lib

rpm -ivh 
http://nginx.org/packages/mainline/centos/7/SRPMS/$NGINX.el7.ngx.src.rpm
sed -i "s|--with-http_ssl_module|--with-http_ssl_module 
--with-openssl=/opt/lib/$OPENSSL --with-openssl-opt=-fPIC|g" 
/home/admin/rpmbuild/SPECS/nginx.spec
rpmbuild -ba /home/admin/rpmbuild/SPECS/nginx.spec

#rpm -Uvh 
/home/admin/rpmbuild/RPMS/x86_64/$NGINX.el7.centos.ngx.x86_64.rpm

install and add to /etc/yum.conf
exclude=nginx

суббота, 10 февраля 2018 г., 17:11:43 UTC+3 пользователь lucas написал:
>
> hey all,
>
> setting up a new server on centos 7.4 and apache 2.4.  web2py is running 
> fine for i get the welcome content but none of the files under static are 
> coming down to the client. please makes suggestions.  thank you.
>
> lucas
>
> here is my default.conf file where you'll see i've tried a bunch of 
> options.  nothing worked so far.:
>
>
>
>
> NameVirtualHost *:80 
> NameVirtualHost *:443 
>
>
>  
> WSGIProcessGroup web2py 
> # WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP} 
> WSGIPassAuthorization On 
>
>  
> AllowOverride None 
> Order Allow,Deny 
> Deny from all 
>  
> Require all granted 
> Allow from all 
>  
>  
>
> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/\$1/static/\$2 
> # AliasMatch ^/([^/]+)/static/(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2 
>
>  
> # Options -Indexes 
> Order Allow,Deny 
> Allow from all 
> # Require all granted 
>  
>
>  
> Deny from all 
>  
>
>  
> Deny from all 
>  
>
> CustomLog /var/log/httpd/access_log common 
> ErrorLog /var/log/httpd/error_log 
>  
>
>  
> # SSLEngine on 
> # SSLCertificateFile /etc/httpd/ssl/self_signed.cert 
> # SSLCertificateKeyFile /etc/httpd/ssl/self_signed.key 
>
> WSGIProcessGroup web2py 
> # WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP} 
> WSGIPassAuthorization On 
>
>  
> AllowOverride None 
> Order Allow,Deny 
> Deny from all 
>  
> Require all granted 
> Allow from all 
>  
>  
>
> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/\$1/static/\$2 
> # AliasMatch ^/([^/]+)/static/(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2 
>
>  
> # Options -Indexes 
> # ExpiresActive On 
> # ExpiresDefault "access plus 1 hour" 
> Order Allow,Deny 
> Allow from all 
> # Require all granted 
>  
>
> CustomLog /var/log/httpd/access_log common 
> ErrorLog /var/log/httpd/error_log 
> 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-14 Thread Dave S


On Saturday, February 10, 2018 at 8:29:00 PM UTC-8, lucas wrote:
>
> better use nginx to serve web2py, found a lot of problem when using apache 
> with web2py
>
> is it really much much better?  in what ways?  why would I change?  Lucas
>

First off, Massimo and the other leads  recommend it ("apache has too much 
cruft").

And then, regarding Alex's comment, it's easy enough to set up that I 
managed it.

My initial config file was similar to the one in the box, but I first made 
sure that I knew what the pieces of the template were doing.  Just 
yesterday, I added rate limiting on a particular URL, as well as 
determining how to block IPs.

The Nginx site has pretty good documentation:





and there's some useful 3rd party documentation:

I got *9781785289538-NGINX_ESSENTIALS.pdf* and 
*9781782165125-INSTANT_NGINX_STARTER.pdf* from there.


/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-13 Thread Alex Beskopilny
nginx much better :)
simple setup -
https://www.digitalocean.com/community/tutorials/how-to-deploy-web2py-python-applications-with-uwsgi-and-nginx-on-centos-7



суббота, 10 февраля 2018 г., 17:11:43 UTC+3 пользователь lucas написал:
>
> hey all,
>
> setting up a new server on centos 7.4 and apache 2.4.  web2py is running 
> fine for i get the welcome content but none of the files under static are 
> coming down to the client. please makes suggestions.  thank you.
>
> lucas
>
> here is my default.conf file where you'll see i've tried a bunch of 
> options.  nothing worked so far.:
>
>
>
>
> NameVirtualHost *:80 
> NameVirtualHost *:443 
>
>
>  
> WSGIProcessGroup web2py 
> # WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP} 
> WSGIPassAuthorization On 
>
>  
> AllowOverride None 
> Order Allow,Deny 
> Deny from all 
>  
> Require all granted 
> Allow from all 
>  
>  
>
> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/\$1/static/\$2 
> # AliasMatch ^/([^/]+)/static/(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2 
>
>  
> # Options -Indexes 
> Order Allow,Deny 
> Allow from all 
> # Require all granted 
>  
>
>  
> Deny from all 
>  
>
>  
> Deny from all 
>  
>
> CustomLog /var/log/httpd/access_log common 
> ErrorLog /var/log/httpd/error_log 
>  
>
>  
> # SSLEngine on 
> # SSLCertificateFile /etc/httpd/ssl/self_signed.cert 
> # SSLCertificateKeyFile /etc/httpd/ssl/self_signed.key 
>
> WSGIProcessGroup web2py 
> # WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP} 
> WSGIPassAuthorization On 
>
>  
> AllowOverride None 
> Order Allow,Deny 
> Deny from all 
>  
> Require all granted 
> Allow from all 
>  
>  
>
> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/\$1/static/\$2 
> # AliasMatch ^/([^/]+)/static/(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2 
>
>  
> # Options -Indexes 
> # ExpiresActive On 
> # ExpiresDefault "access plus 1 hour" 
> Order Allow,Deny 
> Allow from all 
> # Require all granted 
>  
>
> CustomLog /var/log/httpd/access_log common 
> ErrorLog /var/log/httpd/error_log 
> 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-10 Thread lucas
better use nginx to serve web2py, found a lot of problem when using apache 
with web2py

is it really much much better?  in what ways?  why would I change?  Lucas

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-10 Thread 黄祥
better use nginx to serve web2py, found a lot of problem when using apache 
with web2py

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.