Tech learner
Tech learner

Reputation: 1

MVC application under NGNIX rule to run application with virtual directory URL

I have MVC 5 application which is running on IIS on this URL http://localhost:8080. I want to get it run by appending some text in the url like http://localhost:8080/app. To achieve this I have done below things.

  1. Setup Nginx server to redirect url for /app

    server   {
                   listen       8080;
                   server_name  localhost;
                   location /app
                   {
                   proxy_pass   http://localhost:8084/;
                   } 
         }
    
  2. Created directory structure on server like this C:\intepub\Test\app

  3. Created application under Test folder on IIS like below.

    IIS
    --Test (Virtual Directory)
    -- app (as web application under Test) --This is in asp.net MVC5

After doing all this steps when I run the application using url http://localhost:8080/app it didn't worked and getting below exception:

HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable

Upvotes: 0

Views: 129

Answers (0)

Related Questions