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

%5C link issue when running in IIS #130

Closed
thedaftbadger opened this issue Feb 7, 2017 · 8 comments
Closed

%5C link issue when running in IIS #130

thedaftbadger opened this issue Feb 7, 2017 · 8 comments

Comments

@thedaftbadger
Copy link

thedaftbadger commented Feb 7, 2017

Latest version still has issues with inline images not displaying after successfully uploading correctly....
This is when running openKB under IIS with IISNode

image

http://*****/kb/%5Cuploads%5Cinline_files%5Cimage-1486392639920.png

@thedaftbadger
Copy link
Author

Checked permissions for the public folder and they are correct. It seems to be the URL not generating properly.

@mrvautin
Copy link
Owner

mrvautin commented Feb 7, 2017

Seems to be an issue with iisnode (I assume you are running that?): tjanczuk/iisnode#486

Can you try grabbing this PR code and see if it resolves your issue?

@thedaftbadger
Copy link
Author

thedaftbadger commented Feb 7, 2017

Doest seem to work when adding the code to a web.config file for the app in IIS.

<configuration>
	<system.webServer>
		<handlers>
			    <clear />
					<add name="iisnode" path="app.js" verb="*" modules="iisnode" />
					<add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />
		</handlers>
		<rewrite>
			<rules>
				<rule name="sendToNode">
					<match url="/*" />
					<action type="Rewrite" url="app.js" />
				</rule>
				<rule name="static">
				<action type="Rewrite" url="www{REQUEST_URI}" />
				</rule>
				<rule name="serve-static" stopProcessing="true">
        <conditions logicalGrouping="MatchAny">
          <add input="{REQUEST_FILENAME}" matchType="IsFile" />
          <add input="{REQUEST_URI}" pattern="^/www/$" />
        </conditions>
      </rule>
      <rule name="node">
        <action type="Rewrite" url="app.js" />
      </rule>
			</rules>
		</rewrite>
	</system.webServer>
</configuration>

@mrvautin
Copy link
Owner

mrvautin commented Feb 7, 2017

Hmm. Just double checked and I don't think the PR is merged into the main branch yet and may require manual compilation.

@thedaftbadger
Copy link
Author

@mrvautin Just done that ;)

@mrvautin
Copy link
Owner

mrvautin commented Feb 7, 2017

To confirm: you grabbed that PR code and ran the build commands in the iisnode readme?

@thedaftbadger
Copy link
Author

@mrvautin Yep still had the %5C issue in the file URL. I am giving up and switching back to nginx tomorrow 😋

@eugeneagafonov
Copy link

Just to leave the information for those who will search for solution:

P.S. Do not run nginx on windows :)

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

3 participants