In my rails app,I have add a alias path at apache httpd.conf like this:
alias /ckfinder /var/www/html/ckfinder
but ,how i can get the real path of ‘/ckfinder’ in model? Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe there’s any way for rails to know about apache aliases other than by reading an apache config file and interpreting it yourself.
Remember, rails can be run through other web servers too.
Why can’t you just have ckfinder installed in the “public” directory of your rails app so it can always be found relative to the app?