title: How to activate a site in lighttpd
body: <p>I am a newbie to lighttpd maintenance. In apache2 when I add a site(virtual host) file to sites-available, I will have to use the a2ensite command to activate it. If the vhost is example.conf, I will have to run the command below to activate it.</p>
  
  <pre><code>sudo a2ensite example
  </code></pre>
  
  <p>and then restart apache.</p>
  
  <p>I see there are other sites which are in the conf-enabled folder, but I cannot see mine. I even ran lighttpd-enable-mod on the conf file, but for some reason I cannot find a symlink even though I restart the lighttpd server.</p>
  
  <p>How do I do the same in lighttpd??</p>
  
  <p>EDIT: I am adding the vhosts</p>
  
  <blockquote>
    <p>vhost1 >> conf-available/subdomain1.conf</p>
  </blockquote>
  
  <pre><code>$HTTP["host"] =~ "subdomain1.example.com" {
  #$SERVER["socket"] == ":80" {
  proxy.balance = "round-robin" proxy.server = ( "/" =&gt;
  ( ( "host" =&gt; "127.0.0.1", "port" =&gt; 8081 ) ) )
  }
  </code></pre>
  
  <blockquote>
    <p>vhost2 >> conf-available/subdomain2.conf</p>
  </blockquote>
  
  <pre><code>$HTTP["host"] =~ "subdomain2.example.com" {
      #$SERVER["socket"] == ":80" {
      proxy.balance = "round-robin" proxy.server = ( "/" =&gt;
      ( ( "host" =&gt; "127.0.0.1", "port" =&gt; 8082 ) ) )
      }
  </code></pre>
  
  <p>So now I am adding another sub domain(subdomain3) on port 8083. And when I restart it I am unable to get to subdomain3. My web admin helped me on this and now he is out on vacation for two weeks, I primarily am a web developer, so I do not have a lot of idea around this.</p>
  
  <p>One thing I noticed is, there are sym links for subdomain1.conf &amp; subdomian2.conf, but I do not have a sym link to my subdomain3.conf file. When I do a <code>curl -I http://127.0.0.1:8083/</code>, I get a 200 and am receiving the expected data.There are no errors in the conf file, becaus it is a mirror image of the other files, except for the port and host.</p>