How to configure apache for angular 2
<p>I need to configure virtual host for angular2. I have tried following this article </p>

<pre><code>https://www.packtpub.com/mapt/book/Web+Development/9781783983582/2/ch02lvl1sec15/Configuring+Apache+for+Angular
</code></pre>

<p>According to this i need to setup virtual host like this</p>

<pre><code>&lt;VirtualHost *:80&gt;
    ServerName my-app

    DocumentRoot /path/to/app

    &lt;Directory /path/to/app&gt;
        RewriteEngine on

        # Don't rewrite files or directories
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^ - [L]

        # Rewrite everything else to index.html
  # to allow html5 state links
        RewriteRule ^ index.html [L]
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</code></pre>

<p>Can anyone tell me what should be the path to app as my app is running on default angular 2 port that is 4200.
Is there any other way to do it.</p>