lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LongY <zhangyulin8...@hotmail.com>
Subject Re: Nginx proxy for Solritas
Date Tue, 17 Mar 2015 02:29:17 GMT
Thanks to Erik and Shawn, I figured out the solution.

* place main.css in velocity folder into
/usr/share/nginx/html/solr/collection1/admin/file/
* don't forget to change the permission of main.css by sudo chmod 755
main.css
* add main.css to the configuration file of Ngix:
server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;
        index main.css;
        server_name localhost;
        location ~* /solr/\w+/browse {
        proxy_pass   http://localhost:8983; 
                allow   127.0.0.1;
                deny    all;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $http_host;
             
        } 
}
That will work.
Also /var/log/nginx/error.log is good for debugging.




--
View this message in context: http://lucene.472066.n3.nabble.com/Nginx-proxy-for-Solritas-tp4193347p4193415.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message