Quantcast
Channel: General
Viewing all 7363 articles
Browse latest View live

Static Assets path not found - serving React application with Express (Node.js)

$
0
0

Hi guys,

I'm pulling my hair since days because a problem I got. Let me explain it:

I have a IIS 10 Server set up with URL rewrite (Reverse Proxy) Module that routes requests to my node.js / express app running on localhost:3000. The Node server has a connection to active directory and also handles SSO with Kerberos token etc. 

The Express app also serves my build folder from React index.html on the rooot level ("/"). So when I go tohttp://myserver I should see the website and this is the case BUT:

I get error in the console: GET http://myserver/static/js/2.d0df15ed.chunk.js net::ERR_ABORTED 401 (Unauthorized)

I also get this error when I log with procmon.exe: https://i.stack.imgur.com/8wm6f.png

So the path should be http://myserver/client/build/static..... right? 

I just don't know how and what exactly is the problem? Is this a problem from the reverse proxy? Or did I setup my express static file serving incorrectly?

I have just this in node:

app.use(express.static(path.join(__dirname,"client","build")));

I tried to uninstall static file serving on IIS "Static Content" but that doesn't do anything. 

Do you have any idea how to solve this? I really am out of ideas. Thx guys!


Node.js in IIS server

$
0
0

Hi ,

I have few queries related to Nodes.js in IIS.

  1. 1.I'm planning to upgrade node.js from 8.11.2 to LTS version node.js 12. Will it cause any issue with existing sites.
  2. 2.What are the system requirements for node.js 12. like Os version or server version.Tried all ways couldn't find any thing.
  3. 3.Is there any way to find out which application/website hosted in IIS using node.js either in web.config of website or in handler mappings/modules in IIS.

Thanks in Advance.

IIS Default Web Site

OnsiteTimberSydney

$
0
0

<div></div> <div></div>

We cater to the medium density builder who requires materials for both the “wet” and “timber” trades. Generally “sand yards” don’t do timber & cladding and “timber yards” don’t do lintels and sand. We are across all these categories allowing you to streamline the supply chain and account keeping process. 

<div></div> <div></div> <div></div> <div>OnsiteTimberSydney</div> <div></div> <div></div> <div></div> <div>Our social Pages: </div> <div></div> <div>facebook </div><div>twitter</div> <div>linkedin </div> <div>youtube</div><div>pinterest</div> <div></div> <div></div> <div></div>

500 Internal Server Error

$
0
0

Hi,

We have deployed a new  Website in our IIS shared farm. App team has deployed their code but they are facing 500 Internal Server. I have checked permissions,Advanced settings, App pool settings but somehow im unable to find the issue. When I checked in google it is showing like clear the cookies and browsing history we have done that too but no luck!

As it is new website creation did I miss any option while creating. Appreciate your help !

Thanks,

Sow

How to Delete the malformed XML element from the ApplicationHost.config file or from the Web.config file.

$
0
0
<div class=ForumPostContentText>

Hi All,

I've just installed Web server 2008 and tried to run WCF and Web Site and get the following Error message:

Server Error in Application "application name"
HTTP Error 500.19 – Internal Server Error
HRESULT: 0x8007000d
Description of HRESULT
The requested page cannot be accessed because the related configuration data for the page is invalid.

After google searching, I found this hint from MS saying that I should Delete the malformed XML element from the ApplicationHost.config file or from the Web.config file.

But I just dont understand where or how to delete malformed XML.  

I am able to run http://localhost/iisstart.htm.
I have this web site ran perfectly fine before installing Web server 2008.
Could someone please help I'd greatly appreciated.

</div>

Issue with IIS Reverse Proxy

$
0
0

When the url is fired IIS->App1 which translates to IIS->App1->App2->App1.

IIS is the webserver
App1 is the target URL
App2 is the URL which validates the credentials

The url in the browser gets changed. Ideally , it should not change and defeats the purpose of proxy. I have tried with both Reverse Proxy and Pass through Proxy approach.

Am I doing something wrong?

I have used ARR for the approach, and the rule is straightforward

Inbound Rule

Input: URL after path '/'
Pattern: (.*)
Action type: Rewrite
Action URL: https://App1/{R:1}


OutboundRule

Input: A,Form,Img
Pattern: ^http(s)?://App1/(.*)
Action type: Rewrite
Action URL: https://App1/{R:1}
Action Value: https{R:1}://IIS/{R:2}

Digital Marketing Course In Kanpur

$
0
0

<a href=https://www.digitalsavera.com/>Digital Marketing Course In Kanpur</a>
<a href=https://tradertrustedacademy.com//>Forex Trading In India</a>
<a href=https://tradertrustedacademy.com//>Learn Forex Trading In 30 Days</a>
<a href="https://www.youtube.com/watch?v=4zLYpuagvE8">Digital Marketing Course In Kanpur</a>
<a href="https://www.pinterest.ca/pin/605874956105751474/?nic_v2=1a4OBlRuz">Digital Marketing Course In Kanpur</a>
<a href="https://digital-marketing-course-in-kanpur-digital-education-center.business.site/">Digital Marketing Course In Kanpur</a>
<a href="https://www.facebook.com/digitalmarketingcourseinkanpur/?modal=admin_todo_tour">Digital Marketing Course In Kanpur</a>
<a href="https://www.facebook.com/digitalsavera/?modal=admin_todo_tour">Digital Marketing Course In Kanpur</a>
<a href="https://digitalsavera.com/digital-marketing-course-in-kanpur-2/">Digital Marketing Course In Kanpur</a>
<a href="https://www.youtube.com/watch?v=Z_ra8uQxesA&t=70s">Forex Trading In India</a>
<a href="https://www.youtube.com/watch?v=Z_ra8uQxesA&t=70s">Learn Forex Trading In 30 Days</a>


IIS 10 - Server not display images and CSS files

$
0
0

Hi,

I have web site on IIS 10 web server. its display the aspx page but not display any images and css file.

I try to access the image file directly but its show 500 Error. 

I already checked "Static content" feature is installed. Its some type of permission error as if i my web pool user to local "Administrator" group then its able to access the images and css files.

I'm not what permission i need to give and which folder to resolve this.

Thanks

Difficulty adding a role to an Azure-provisioned Windows Server 2012 R2

$
0
0

There is a risk here of the Windows people saying it's an Azure problem and the Azure people saying it's a Windows problem. Given that ...

We have a Support Request, ID 120081423000276, wherein we are trying to add the IIS Tracing role to our server. We have described the problem and the steps we have so far taken to remedy it at How to add Tracing to IIS under Windows Server 2012 R2 under Azure.

Our apologies if this is not the correct place. We've already been herded away from two wrong places. We are trying to debug an Url Rewrite issue (described at Reverse Proxy issues) and not being able to install FRT is a show stopper.

IIS Setup to access a certificate private key

$
0
0

Hi,

This is a copy of a post here (https://social.technet.microsoft.com/Forums/windowsserver/en-US/a92e8040-459e-4754-b464-4f8354b75cb8/iis-setup-to-access-a-certificate-private-key?forum=ws2016) that I was advised to post in this forum:

I have two servers running Windows Server 2016 and both are hosting IIS (one on AWS but I think that is a detail)

My IIS hosted website establishes a connection to a third party socket using a client certificate. In order to do this I have the certificate stored in the LOCAL_MACHINE\MY store and grant access to the private key using the MMC snap in to the AppPoolIdentity account. The certificate was marked as exportable when I imported it.

I should also say the certificate in question is authorised by reference to another root certificate also stored in the same store and for which I do not have the private key.

I am finding that, when I run my website using the AppPool identity I get the following error:

 

The credentials supplied to the package were not recognized (HRESULT:-8x)

atSystem.Net.SSPIWrapper.AcquireCredentialsHandle(SSPIInterface secModule,Stringpackage,CredentialUse intent, SCHANNEL_CRED scc)
 at System.Net.Security.SslStreamPal.AcquireCredentialsHandle(CredentialUse credUsage, SCHANNEL_CRED secureCredential)
  at System.Net.Security.SslStreamPal.AcquireCredentialsHandle(X509Certificate certificate,SslProtocols protoco...


If I run the same site with the LocalSystem account it all works fine.

Where else do I need to change permissions to allow this key to be used? Specific files? Something on the root certificate or the certificate store? What can I change in logging to get greater insight?

Thanks

Mark

Multiple domain certificates and I

$
0
0

Hello, 

I have a single server with multiple ssl certificates serving 2 different domains (mydomain.com and mydomain.ca),  I am using SNI and setup the binding for mydomain.ca and checked the Require Server Name Indication.  The server is using IIS 10.  The .ca site will not use the .ca certificate. It always uses the .com certificate.  Searching the Web, checking Required Server Indication when setting up the binding should solve but it does not. What is missing?

Is Your Microwave Giving You Cancer?- By Gdax Ed

$
0
0

No. Microwaving doesn't adjust food in any capacity that could make you wiped out. Every one of the microwaves does is prod the water atoms in your food to move, and the grating of those particles warms up your feast. The stoves do produce a minuscule attractive field, yet there's next to no proof that such a field represents an issue for people. In addition, there's a simple method to evade any possible damage—step back when the broiler is on.

Visit:- Gdax

Removing IP Address from HTTP(S) response header

$
0
0

We have a server that is open on the outside and when doing a vulnerability scan it comes back with below. We are using IIS 8.5 but not sure what the best way is to remove the internal ip off the http header. This is an exchange server so need to be careful what we do

THREAT:Some Web servers contain a vulnerability giving remote attackers the ability to attain your internal IP address or internal network name.

An attacker connected to a host on your network using HTTPS (typically on port 443) could craft a specially formed GET request from the Web server resulting in a 3XX Object Moved error message containing the internal IP address or internal network name of the Web server.

A target host using HTTP may also be vulnerable to this issue.

QID Detection Logic:
The remote check for the web server internal IP address sends a HTTP GET request to the target web server. The QID is flagged if a "Content-location:" header or a 3xx redirect address in an HTTP response contains an RFC1918 IP address.

PCI DSS 3.2 requirement 1.3.7 "do not disclose private IP addresses and routing information to unauthorized parties".
This is a PCI Fail since confidential information about your network is leaked.

IMPACT:Successful exploitation of this vulnerability results in the disclosure of your internal IP address or internal network name, which could then be used in further attacks against the target host.SOLUTION:There are no patches available at this time. Please contact your vendor for updates.

Workaround:

For IIS Web Server 6.x and prior:
Check the Microsoft article on how to set the Hostname instead of internal IP address for IIS.

For IIS 7.0 or newer
The release version of IIS7 by default includes the functionality of masking the IP address. Refer to Removing an IIS server's IP address from HTTP responses and Internet Information Server returns IP address in HTTP header (Content-Location) for more information.

For Apache Web Server:
Modify the Apache configuration file as follows:
- Set "ServerName" to a proper FQDN.
or
- Use module mod_rewrite to modify the 3xx error message returned by the server.

No workaround information is available for other Web servers at this time. Refer to your vendor for an appropriate workaround.

recycle all application pools on menu in IIS

$
0
0

I have asked a developer show me how to recycle some site, He showed in IIS, left menu, right click an item, then shows a recycle, then click that it will recycle all the application pools

When I come back to my own workstation, and login to the same server, I cannot find a recycle by right click all the something in left menu? I tried to click every one, but did not see the word recycle.

What do I miss?

Thanks.


IIS consumes memory with reverse proxy for MJPEG stream

$
0
0

Hello

As stated I have set up a reverse proxy to allow for streaming of mjpeg video from a local videoproxy hosted on same sever as IIS. (I use nodejs to create a local stream @ localhost:8081/testvideo.jpg)

I then just use the <img src="../proxy/testvideo.jpg"/>  to show the video in an image tag on the webpage hosted by IIS.

However it seem when loading the page that the w3wp.exe starts consuming memory until the memory is used up. (And I get a black image where the mjpeg video was playing)

Any ideas?

It works fine on Apache but I'd rather stick with IIS for other reasons.

Kind regards, Emanuel

IIS Rewrite double slash is seen as single slash

$
0
0

The server migrated from apache to IIS; it's a PHP server but I noticed a unfortunate issue that does not seem easily solvable to me. 

When I filter in a CGRIDVIEW; this is a yii1 feature it will reload the page with a 'GET':

https://example.com/controller/action/hallo/world/hallo2//hallo3/hi/

You will normally see that is this:

hallo -> world

hello2 -> (empty)

hello3 -> hi

However that is done using apache; when I went to IIS with rewrite 2, I've gotten this issue where the double slashes are single slashes (or well, it's seem like that in PHP and the 'GET' parameters is messed up). With IIS it retuns:

hallo -> world

hello2 -> hello3

etc

Does anyone have a idea what this might cause? 

Thank you for your time!

Occasional IIS SMTP Badmail

$
0
0

I have six servers in three networks.  Each server runs a ".bat" script to do a backup then email a completion notice to me.  Two of the networks configure SMTP to relay to the 3rd network.  The 3rd network mails out the completion notices, as this network is configured appropriately for outgoing email via DNS, SPF, etc.  On occasion, not always, one of the emails isn't delivered and ends up in the Badmail directory with a zero (0) byte size.  The BDR record contains the message "error is processing file in pickup directory. 0xC00402CE."  Presently, the badmail email is strictly limited to one of the emails on the Windows 2016 server in the outgoing (to the internet) email network.

Again, most emails go through fine and the ones that appear bad are not always from the same server.  I've checked timing and there doesn't seem to be emails that try to go out at the same instant.  All mails are created via a common ".bat" file, so the headers are built exactly the same.

Does anyone know why this occurs?  I've had this problem occasionally with Windows 2003, less so with Windows 2008 R2.  But this is on Windows 2016 and it appears to occur more frequently than on the previous version of Windows (2008 R2).

Configuring IIS 7 With ActivePerl

$
0
0

Hi,

I am learning HTML5 on my own pace.  The book I am learning from is titled HTML5 in easy steps.  Some of the practice exercises require  to download and  install Abyss web server and Active Perl.  However I would like to use IIS 7 instead of Abyss web server.  I have added .pl and .cgi Map Handlers for each exercise into each main Folder.  Also i downloaded and saved a copy of echo.pl, echo.css into each exercise's  main folder as required.  Then in saved them in inetpub directory -not into the"wwwroot" directory.

However when i run each site in IIS, i get the following error message:

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Detailed Error Information

<div id="details-left">

ModuleStaticFileModule
NotificationExecuteRequestHandler
HandlerStaticFile
Error Code

0x80070032

</div>

Requested URLhttp://localhost:80/echo.pl?Name=Shervin+Ghamghamy&Password=12346456&City=Dallas&State=Texas&Zip+code=91387
Physical PathC:\inetpub\wwwroot\echo.pl
Logon MethodAnonymous
Logon UserAnonymous

The physical path should be C:\inetpub\Website-4\echo.pl I believe.  Why is it looking for echo.pl inwwwroot directory?

It seems like IIS is not locating the echo.pl and echo.css in files.

Does it matter which version of Active Perl i install in my HDD?

What is the MIME type for .pl and .cgi extensions?

Can IIS 7configure Perl?

What am I missing here?.

Please help.

Thx.

               Shervin

         Shervin

ERR_HTTP2_PROTOCOL_ERROR

$
0
0

Team

While using https with IIS we are intermittently getting ERR_HTTP2_PROTOCOL_ERROR on Dev tool.

This works fine with http protocol. We are using IIS 10.

We are using React Framework 16.11.0 version and the fetch method fails.This happens in all the browser (edge, chrome etc)

Sharing below the net log data.

{"params":{"description":"Server reset stream.","net_error":"ERR_HTTP2_PROTOCOL_ERROR","stream_id":183},"phase":0,"source":{"id":2567,"start_time":"1619763469","type":1},"time":"1619779275","type":222},

Please let me know if I need to share any other info.

Thanks in advance

Tahir

Viewing all 7363 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>