Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Running Node Site from Subdirectory #531

Open
dustin-lennon opened this issue Sep 20, 2016 · 3 comments
Open

Issue Running Node Site from Subdirectory #531

dustin-lennon opened this issue Sep 20, 2016 · 3 comments

Comments

@dustin-lennon
Copy link

I have the following web root layout

wwwroot
|-Filebrowser
| |-client
| | |-css
| | |-imgs
| | |-js
| | |-jstree
| | |-partials
| |-views
| |-app.js
| |-routes.js
| |-web.config

You can see what files I have in the directories and in my app.js, routes.js, and web.config here: https://github.com/demonicpagan/FileBrowser

When trying to view the site at http://localhost/Filebrowser

I get the following because it hits my 404 error which I cannot figure out why.

The requested resource is not available.

Request received on port .\pipe\7695c976-1661-4938-aa11-e88d8ba1d623
Requested URL: /filebrowser
Deploy Path:
[iisnode version is 0.2.21, node version is v4.5.0]

@pbaio
Copy link

pbaio commented Sep 21, 2016

Check out this answer I gave on StackOverflow for setting up your IISNode app in a Virtual Directory. I've also written StackOverflow Documentation for getting up and running with IISNode and Express.

Hopefully those two things can help you get up and running with IISNode, they should solve this issue.

@dustin-lennon
Copy link
Author

Which would be the best solution for the folder of mine NOT being a virtual directory?

@pbaio
Copy link

pbaio commented Oct 4, 2016

@demonicpagan I would read the StockOverflow docs I wrote and see if they get you setup appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants