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

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/42c0d7e3-bf6c-e80b-d87c-779c71f0f3b6%40gmail.com.

Reply via email to