Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. <VirtualHost *>
  2. ServerAdmin webmaster@localhost
  3.  
  4. ProxyPreserveHost On
  5. ProxyRequests Off
  6.  
  7. proxyPass /_aliases http://localhost:9200/_aliases/
  8. ProxyPassReverse /_aliases http://localhost:9200/_aliases/
  9.  
  10. proxyPass /.*/_aliases http://localhost:9200/.*/_aliases/
  11. ProxyPassReverse /_aliases http://localhost:9200/_aliases/
  12.  
  13. proxyPass /_nodes http://localhost:9200/_nodes/
  14. ProxyPassReverse /_nodes http://localhost:9200/_nodes/
  15.  
  16. proxyPass /_search http://localhost:9200/_search/
  17. ProxyPassReverse /_search http://localhost:9200/_search/
  18.  
  19. proxyPass /_mapping http://localhost:9200/_mapping/
  20. ProxyPassReverse /_mapping http://localhost:9200/_mapping/
  21.  
  22. DocumentRoot /var/www/html
  23. <Directory />
  24. Options FollowSymLinks
  25. AllowOverride None
  26. </Directory>
  27. <Directory /var/www/html/>
  28. Options Indexes FollowSymLinks MultiViews
  29. AllowOverride None
  30. Order allow,deny
  31. allow from all
  32. # This directive allows us to have apache2's default start page
  33. # in /apache2-default/, but still have / go to the right place
  34. #RedirectMatch ^/$ /apache2-default/
  35. </Directory>
  36.  
  37. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  38. <Directory "/usr/lib/cgi-bin">
  39. AllowOverride None
  40. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  41. Order allow,deny
  42. Allow from all
  43. </Directory>
  44.  
  45. ErrorLog /var/log/apache2/error.log
  46.  
  47. # Possible values include: debug, info, notice, warn, error, crit,
  48. # alert, emerg.
  49. LogLevel warn
  50.  
  51. CustomLog /var/log/apache2/access.log combined
  52. ServerSignature On
  53.  
  54. Alias /doc/ "/usr/share/doc/"
  55. <Directory "/usr/share/doc/">
  56. Options Indexes MultiViews FollowSymLinks
  57. AllowOverride None
  58. Order deny,allow
  59. Deny from all
  60. Allow from 127.0.0.0/255.0.0.0 ::1/128
  61. </Directory>
  62.  
  63. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement