DocumentRoot should end up on specific file!

Hi,

We want nginx vhost to access the file audo_portal.php without
specifying
it,i.e instead of using URL http://domain.com/audio_portal.php , can we
access it with http://domain.com ? So it’ll directly access
audio_portal.php just like index.php ?

Regards.
Shahzaib

Hello!

On 08/31/2015 09:29 PM, shahzaib shahzaib wrote:

Hi,

We want nginx vhost to access the file audo_portal.php without
specifying it,i.e instead of using
URL http://domain.com/audio_portal.php , can we access it with
http://domain.com ? So it’ll directly access audio_portal.php just like
index.php ?

Yes you can use index on http, location, and server. See
http://nginx.org/en/docs/http/ngx_http_index_module.html

Hi,

THanks, looking into it.

Regards.
Shahzaib

On Mon, Aug 31, 2015 at 7:33 PM, Dewangga Bachrul Alam <