React-starter-kit: Looking for docs to setup reactjs with ssl and https using Apache as the proxy.

Created on 29 Jan 2018  路  3Comments  路  Source: kriasoft/react-starter-kit

I have it 1/2 working with the vanilla RSK test page (I am using SSL for myserver.com)

    RewriteEngine  On
    RewriteRule "^/rfun$" "https://%{HTTP_HOST}/rfun/"  [PT] #[L]
    ProxyPass /rfun/ http://localhost:3000/
    ProxyPassReverse /rfun/ http://localhost:3000/

However the response page does not alias back any links with /rfun/

So what I would like is for the baseURL to be https://myserver.com/rfun/ instead of https://myserver.com/

For example a link on the page, shows the URL as follows:
https://myserver.com/assets/src/components/Header/logo-small.png?2f751285
instead of
https://myserver.com/rfun/assets/src/components/Header/logo-small.png?2f751285

help wanted needs more info

All 3 comments

Looks like you need to specify proper baseUrl/publicPath etc.

baseUrl will be handy because I don't need to add more certs.

I am also looking at the option of having subdomains. https://serverfault.com/questions/670753/two-https-virtualhosts-on-same-server-same-port-different-subdomains

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

koistya picture koistya  路  4Comments

piglovesyou picture piglovesyou  路  3Comments

rochadt picture rochadt  路  3Comments

pfftdammitchris picture pfftdammitchris  路  3Comments

juangl picture juangl  路  4Comments