I think nginx is being used for routing and apache is what is actually being used. This is the hosting provider I'm using. https://www.1and1.com/linux-web-hosting
When I run a netstat it shows that port 80 is listening through nginx. In the nginx configuration there is a proxy setting that forwards port 80 traffic to port 7080 which is hosted by Apache. On Sunday, February 19, 2017 at 5:19:41 PM UTC-5, Áureo Dias Neto wrote: > > Hello > Or you use nginx + uwsgi > Or use apache + wsgi > > Em 19 de fev de 2017 19:18, "LoveWeb2py" <atayl...@gmail.com <javascript:>> > escreveu: > >> Hello, >> >> I ran the *setup-web2py-nginx-uwsgi-ubuntu.sh *to get web2py up and >> running, but i'm running into an odd issue. >> >> I'm using 1and1 hosting and they use vhosts. So the setup they're using >> has nginx on the front end (port 80) and connects to apache over port 7080. >> >> Here is my conf file for apache2 >> >> WSGIDaemonProcess web2py user=www-data group=www-data >> >> <VirtualHost *:7080> >> >> WSGIProcessGroup web2py >> WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py >> WSGIPassAuthorization On >> >> <Directory /home/www-data/web2py> >> AllowOverride None >> Require all granted >> <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 >> ErrorLog /var/log/apache2/error.log >> </VirtualHost> >> >> <VirtualHost *:7081> >> SSLEngine on >> SSLCertificateFile /etc/apache2/ssl/self_signed.cert >> SSLCertificateKeyFile /etc/apache2/ssl/self_signed.key >> >> WSGIProcessGroup web2py >> WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py >> 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> >> >> The problem I'm having is when I go to visit my site. I put an index.html >> file in my /home/www-data/web2py directory. I'm actually seeing the content >> in index.html. It appears as if the wsgihandler.py isn't working correctly. >> I've been troubleshooting for days and I can't figure this out. Any help is >> greatly appreciated. >> >> -- >> 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+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- 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.