title: Nginx sites-enabled, sites-available: Cannot create soft-link between config files in Ubuntu 12.04
body: <p>I am trying to create soft links between config files containing server blocks in the sites-enabled and sites-available directories in /etc/nginx/.</p>
  
  <p>The command I am using is:</p>
  
  <pre><code>sudo ln -s sites-available/foo.conf sites-enabled/
  </code></pre>
  
  <p>When I then execute:</p>
  
  <pre><code>ls -l
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>lrwxrwxrwx 1 parallels parallels 27 Aug  6 20:44 immigrationinformation.conf -&gt; immigrationinformation.conf
  </code></pre>
  
  <p>where the <code>immigrationinformation.conf -&gt; immigrationinformation.conf</code> part has a charcoal with red typeface.</p>
  
  <p>When I then try and access this soft-link, I am told that it is broken.</p>
  
  <p>When I create the soft-link in the sites-available directory i.e.</p>
  
  <pre><code>sudo ln -s sites-available/foo.conf sites-available/foo_link.conf
  </code></pre>
  
  <p>it works as normal. However, if I then move this to the sites-enabled directory, the link is broken again.</p>
  
  <p>I can create the soft link via the file manager GUI but not via the command line. I can also create hard-links with no problem.</p>
  
  <p>I suspected it was a permissions issue so I have played around with setting all permissions to 777 of both directories and the directories themselves and also changing the owners to something other than root, but still with no luck.</p>
  
  <p>Any help would me much appreciated, thank you.</p>