Hi!
For our deploy installation I followed successfully the procedures in
documentation so now I have my server exposing the web2py root, now I
tried to configure a second host name using an apache reverse proxy
configuration to serve directly a specific application, is it possible?
Let's say my application is reachable under
apps.mycompany.com/myapp and
now I want to setup the virtualhost
myapp.mycompany.com as a reverse
proxy to direcly serve the app. I've used this apache proxy configuration:
<VirtualHost *:443>
ServerName
myapp.mycompany.com
SSLProxyEngine On
ProxyRequests Off
SSLProxyCheckPeerName off
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
ProxyPass "/" "https://<myip>/myapp/"
ProxyPassReverse "/" "https://<myip>/myapp/"
SSLCertificateFile
/etc/letsencrypt/live/
analytics.colouree.com/fullchain.pem
SSLCertificateKeyFile
/etc/letsencrypt/live/
analytics.colouree.com/privkey.pem
CustomLog /var/log/apache2/ssl-analytics-access.log common
ErrorLog /var/log/apache2/analytics-error.log
</VirtualHost>
The problem is that every link included in the page contains even the
application name such as:
https://analytics.colouree.com/welcome/static/css/bootstrap.min.css and
so on.
Is there a possible way to fix it with some framework configuration?
Thank you very much.
Best regards
Manuele