Home > Net >  How to solve the deployment problem under http://www.abc.com/test
How to solve the deployment problem under http://www.abc.com/test

Time:01-07

I have a made website asp.net MVC project, the original domain is such as http://www.abc.com, you can normal visit, but now to adjust into http://www.abc.com/test access domain, the other with nginx configuration after good reverse proxy, opened the http://www.abc.com/test home page found all static resources (*.jpg, *. CSS, etc.) can access, because all point to http://www.abc.com, the child pages, such as/Login/Index cannot access, because access into http://www.abc.com/Login/Index

Excuse me, how to solve this problem

CodePudding user response:

Send your link is how to write the
<script SRC="https://bbs.csdn.net/topics/~/Scripts/bootstrap.min.js" & gt; </script>
Location. A href="https://bbs.csdn.net/topics/.action" (" Index ", "Home");

CodePudding user response:

Looks good hard ah

CodePudding user response:

Have the following
 

@ (Url. The Action (" News ", "index")

<script SRC="https://bbs.csdn.net/topics/~/Scripts/bootstrap.min.js" & gt; </script>

The Response. Redirect ("/Test/Test. Aspx?" );

CodePudding user response:

Sentence: change path, namely the htmlhelper generated link to manually write death; All the manual link into a new absolute path,
Such as/Login/Index change/test/Login/Index, ~/Scripts/bootstrap. Min. "js" into/test/Scripts/bootstrap. Min. Js

Nginx integration multiple web project to the same site
https://www.chenxin.info/2020/07/02/web-projects-integration-on-nginx/

CodePudding user response:

Simple, underneath the root domain name you do application test
  • Related