Apostrophe CMS Main Site Forum Home

Prefix and redirect


#1

I want my site to run in http://domain.com/web

I did the prefix configuration in app.js and works as expected.
Now I want the http://domain.com/ to be redirect to /web but instead I get a “Cannot GET /” error.

Redirection from the Apache configuration doesn’t work


#2

found it I had a wrong proxy it should be

ProxyPass “/web” “http ://localhost:3000/web/”
ProxyPassReverse “/web” “http ://localhost:3000/web/”

instead of

ProxyPass “/” “http ://localhost:3000/web/”
ProxyPassReverse “/” “http ://localhost:3000/web/”


#3

Sounds sensible. FYI how-to questions are best posted to stackoverflow, tagged apostrophe-cms. The forum is meant for announcements and general discussion. While I’m on the subject, we also have live community chat at chat.apostrophecms.org.