title: How to configure Nginx for serving Symfony2 app from location path?
body: <p>No problem for me to setup a normal domain or vhost. But I don't get it right to serve from a different directory via location!</p>
  
  <p>Wether the Symfony cookbook site nor the nginx symfony wiki page mention this scenario.</p>
  
  <p>I walked throug several hints from Stackoverflow and elsewhere - but no success.</p>
  
  <p>Is there any resource or working configuration someone can provide me?</p>
  
  <p>Some information:</p>
  
  <p>Symfony root web folder is not a sub folder of webroot; i need to setup a path like /admin for several domains directing to a separate Symfony folder:</p>
  
  <p>Web Root for the domain (differs on domain):</p>
  
  <pre><code>/srv/http/domain.com/htdocs
  </code></pre>
  
  <p>Symfony web root for all domains accessible with /admin</p>
  
  <pre><code>/srv/http/shared/admin/web
  </code></pre>
  
  <p>Thanks in advance,</p>
  
  <p>Micha</p>