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 > > > <VirtualHost *:80> > WSGIProcessGroup web2py > # WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP} > WSGIPassAuthorization On > > <Directory /opt/web-apps/web2py> > AllowOverride None > Order Allow,Deny > Deny from all > <Files wsgihandler.py> > Require all granted > Allow from all > </Files> > </Directory> > > AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) > /opt/web-apps/web2py/applications/\$1/static/\$2 > # AliasMatch ^/([^/]+)/static/(.*) > /opt/web-apps/web2py/applications/$1/static/$2 > > <Directory /opt/web-apps/web2py/applications/*/static> > # Options -Indexes > Order Allow,Deny > Allow from all > # Require all granted > </Directory> > > <Location /admin> > Deny from all > </Location> > > <LocationMatch ^/([^/]+)/appadmin> > Deny from all > </LocationMatch> > > CustomLog /var/log/httpd/access_log common > ErrorLog /var/log/httpd/error_log > </VirtualHost> > > <VirtualHost *:443> > # 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 > > <Directory /opt/web-apps/web2py> > AllowOverride None > Order Allow,Deny > Deny from all > <Files wsgihandler.py> > Require all granted > Allow from all > </Files> > </Directory> > > AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) > /opt/web-apps/web2py/applications/\$1/static/\$2 > # AliasMatch ^/([^/]+)/static/(.*) > /opt/web-apps/web2py/applications/$1/static/$2 > > <Directory /opt/web-apps/web2py/applications/*/static> > # Options -Indexes > # ExpiresActive On > # ExpiresDefault "access plus 1 hour" > Order Allow,Deny > Allow from all > # Require all granted > </Directory> > > CustomLog /var/log/httpd/access_log common > ErrorLog /var/log/httpd/error_log > </VirtualHost> > -- 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.