title: YII 2 Get Site URL
body: <p>My Application is deployed on localhost/upload.</p>
  
  <p>I am using following code to generate relative URL.</p>
  
  <pre><code> Url::to('@web/my_controller/action'); // it returns /upload/my_controller/action
  </code></pre>
  
  <p>But, I need full URL like this instead: <a href="http://localhost/upload/my_controller/action" rel="nofollow">http://localhost/upload/my_controller/action</a>.</p>
  
  <p>Am I missing something?</p>