I have Apache conf:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName project.example.com
ServerAlias ci
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost on
ProxyPass / http://localhost:1111/project
SSLCertificateFile /etc/letsencrypt/live/sub.example.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sub.example.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/sub.example.com/chain.pem
</VirtualHost>
</IfModule>
When I enter project.example.com
, I get https://project.example.com/project/users/sign_in
in a browser. How to remove context path from URL?
I want to remove project
from URL and get https://project.example.com/users/sign_in
?