简体   繁体   中英

.aspx file doesn't work on IIS website

I have a big solution that contains a lot of .aspx file, basically it's a big sln file for my whole server

I wanted to add a website in my IIS server that contains inside a child directory within the root site folder, for example:

my-tools.com physical path is D:/MyWeb <-- Working well

I added a secondary sites, with no relation to the upper site called mysite which is like that:

mysite.my-tools.com which its path it D:/MyWeb/MySite/

If I try to reach mysite.my-tools.com/M_Index.aspx file it give me an error tells me it's not found, however, when I try to view a .jps file from the same directory (eg mysite.my-tools.com/test.jpg) it returns just find.

it's important to tell that all the pages share the same solution, what do I do here and why it is not working? can anyone tell me?

thanks a lot

having the folder separated like you do is a step in the right direction. next step is to configure IIS to point to that separate folder. then you would need to create a DNS entry for your sub-domain at your DNS host. "subdomain.domain.com". You would be creating a new site, so you could use the same IP address, as long as you add the proper host headers for each site.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM