solr reverse proxy Apache2

Posted by Steven on Server Fault See other posts from Server Fault or by Steven
Published on 2013-10-18T14:46:23Z Indexed on 2013/10/18 15:57 UTC
Read the original article Hit count: 370

Filed under:
|
|
|

I am trying to setup Apache2 as Reverse Proxy for solr. Apache and Solr are on the same machine. Apache is serving other stuff as regular web server,too.

solsearch config file in /etc/apache2/config.d/

# Proxy specific settings
ProxyRequests Off
ProxyPreserveHost Off

<Proxy *>
    AddDefaultCharset off
    Order deny,allow
    Allow from all
</Proxy>

ProxyPass /solrsearch http://localhost:8983/solr/collection1/browse
ProxyPassReverse /solrsearch http://localhost:8983/solr/collection1/browse

Now trying [http://localhost/solsearch] gives me the first page of [http://localhost:8983/solr/collection1/browse], but with broken layout (like css missing).

Result: error.log of apache: File does not exist: /var/www/solr, referer: [http://192.168.1.150/solrsearch]

© Server Fault or respective owner

Related posts about apache2

Related posts about proxy