How to cut URL path

I’v load yii framework on web-server, as result URL site => /site.com/yii/myproject/

How to cut URL-path => /site.com/

Have you tried both base url (Yii::app()->getBaseUrl(true)) and webroot?