Open ghost opened 5 years ago
Try changing «<VirtualHost *:80>» to «
Are you seeing incorrect links generated or is your app receiving requests with incorrect paths?
Thank you for reply and I'm sorry to my late response, but there is still incorrect response from server.
My application server said The requested URL /app1/sign_in/path was not found on this server.
and return 404. I check my symlink but it certainly link to application's public folder.
I'm sorry, to clarify before it seemed that you were receiving requests like http://my-rails.app/app1/app1
and in this reply you only have one instance of /app1
. Do you want the /app1
stripped off completely or are you seeing two copies of /app1
?
Issue report
Question 1: What is the problem? I tried setting up passenger with subdomain configuration, but it won't work as much as I expected. I expected url like
http://my-rails.app/app1
, but it actually behaved likehttp://my-rails.app/app1/app1
.I'm using symbolic link, which links from /var/www/html/app1 to /home/username/rails-app and on my server, this application works alone.
If there is no PassengerBaseURI, it works as expected. here is my passenger configuration file.
Question 2: Passenger version and integration mode: open source 5.3.7/apache2.4.29
Question 3: OS or Linux distro, platform (including version): Ubuntu 18.04.1 LTS
Question 4: Passenger installation method:
[x] RubyGems + Gemfile [ ] RubyGems, no Gemfile [ ] Phusion APT repo [ ] Phusion YUM repo [ ] OS X Homebrew [ ] source tarball [ ] Other, please specify:
Question 5: Your app's programming language (including any version managers) and framework (including versions): Ruby2.5.3, rbenv, Rails5.2.0
Question 6: Are you using a PaaS and/or containerization? If so which one? passenger working on physical machine
Question 7: Anything else about your setup that we should know? no.