-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy to subdirectory #378
Comments
I was having similar trouble using apache as a proxy and redirecting to kandan with the RAILS_RELATIVE_URL_ROOT as above. In my case, the app processed the request, but the URL it returned was "my_site.com/users/sign_in" when it should have been "my_site.com/kandan/users/sign_in". After trying many things on the apache end to fix the URL, I'm left thinking it's a Kandan issue. |
@tyleraland I tried so many things, for 2 straight days actually, nothing does it. I tried:
Nothing really worked, I got partial stuff working like the account menu and login/main page with assets loading (need to set But Faye never understood to make its POST requests to Furthermore, there hasn't been any activity since May this year, long holidays? |
I've resigned to asking my local network administrator to add a second DNS entry pointing to the existing server, then use it to uniquely identify via ServerName in apache, which seems to work fine (no subdirectories...) Would love to see this fixed :) |
@tyleraland can you explain that procedure in more details? I'm trying to keep SSL on at the same time.. I asked on stackoverflow (here) |
With the caveat that I'm still testing/configuring... (and that this is apache, not some sexy ruby app) I've asked my local network admin to add a second DNS entry, by a different name, pointing to the IP of the apache server. Incoming requests to that server see the URL request and hand it off to the correct virtualhost, identified by ServerName in the virtualhosts block. In my /etc/apache2/sites-available/kandan:
Kandan just runs, without special modifications, with "bundle exec thin start" |
Have you seen #370 for docker support? I haven't pulled it in yet as I haven't tested it, but that might be a good start. Looks like @tyleraland might have more experience setting this up under the environment you want however. |
In your configuration,
There should be a line to close the <VirtualHost *:443>. Otherwise, this is a syntax-related misconfiguration. The correct one would be:
|
Hello,
I'm trying to make a solid docker container for kandan and I'm stuck at trying to run kandan in a subdirectory.
I got it all working as root application
RAILS_ENV=production bundle exec thin start
I load up localhost:3000
Everything works fine
When I run instead:
I load up localhost:3000/kandan
I get an error: The page you were looking for doesn't exist (404)
Any help appreciated!
The text was updated successfully, but these errors were encountered: