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 <

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs