Quantcast
Channel: All Forums
Viewing all 26542 articles
Browse latest View live

I need your help

$
0
0


Hello, I need your help, thank you!
--------------------------------------------------------------------------------------------

<rule name="cba">
<match url="^/([0-9]{1,3})/$" ignoreCase="true" />
<action type="Rewrite" url="/baby/0/{R:1}/" appendQueryString="false" />
</rule>

url:
localhost/baby/0/456/

Rewriting:

localhost/baby/456/

This can be used

--------------------------------------------------------------------------------------------

localhost/baby/1/1567/
localhost/baby/2/2678/
localhost/baby/3/3789/

Rewriting:

localhost/baby/1567/
localhost/baby/2678/
localhost/baby/3789/

This is not available, (Subdirectory:1,2,3, It's 1000 redundancy.,) {C:1} Unrecognized “/1/”“/2/”“/3/”

<rule name="abc">
<match url="^/([0-9]{4,5})/$" ignoreCase="true" />
<action type="Rewrite" url="/baby/{C:1}/{R:1}/" appendQueryString="false" />
<conditions>
<add input="{REQUEST_FILENAME}" pattern="/([0-9]{1,2})([0-9]{3})/$" />
</conditions>
</rule>

What's wrong with my rule? Or can these two rules be merged into one rule? Thank you!


IIS 8 and web hosting

$
0
0

Hello Team,

TBH, I have new in IIS.

We have IIS 8 running on windows server 2012 R2. I recently updated the server certs for two siteswww.xxx.org and www.yyy.org 

After updating the certs, I am able to browse www.xxx.org internally and externally just fine but when i try to browsewww.yyy.org from expternally it is unreachable. www.yyy.org internally works just fine

When I check www.yyy.org here https://www.digicert.com/help/ it says unable to connect. 

Here are the settings of bindings.

for www.xxx.org

Type: https 

IP add: All Unassigned 

POrt: 443

Hostname: www.xxx.org

SSL cert: xxxxxx

for www.yyy.org

Type: https 

IP add: All Unassigned 

POrt: 443

Hostname: www.yyy.org

checked box Require Server Name Indication 

SSL cert: xxxxxx

I am also gettings this message: No default ssl site has been created to support browsers without sni capabilities, it is recommended to create a default ssl site.

I appreciate your time and effort. 

Thanks, 

Getting error 403 setting up Citrix Netscaler to forward http requests to Skype FE servers

$
0
0

Can't figure out if this is an  IIS thing with 2012 R2 or a Skype for Business thing, but I am posting it here in the hopes that someone else with SFB and a load balancer ran into the same problem.

We use Citrix Netscalers and part of our migration from Lync 2013 to SFB 2015 is updating our load balancer and replacing the Lync FE servers in our Service Groups on the Netscaler with SFB FE servers.

We immediately started getting 403 errors so there is something different in IIS on 2012 R2 than 2008 R2 which our Lync servers run.

If you try to browse to at SFB FE running 2012 R2 on either port 80 or 443, you get the error below:

Server Error

403 - Forbidden: Access is denied

You do not have permission to view this directory or page using the credentials that you supplied.

It works just fine on the Lync 2013 running 2008 R2 so what is different or needs to be done on 2012 R2 to get this to work? We noticed that enabling Directory Browsing on the External and Internal sites in IIS makes the error go away but not sure if this is the correct way to handle this problem. Hoping someone could help. All the load balancer does is take URL's like meet.domain.com and funnel them to 3 different Skype FE servers. When we try to establish  a new connection to our SFB FE servers, we get the error above so it can't even talk to IIS.

Generate Line Chart (3 lines) from a CSV file

$
0
0

 Hello,

 

CSV file A

Date, Place, Level

12/6, A site, 12.435

13/6, A site, 53.454

14/6, A site, 1.545

12/6, B site, 43.456

13/6, B site, 14.542

14/6, B site, 21.512

12/6, C site, 12.212

13/6, C site, 2.321

14/6, C site, 32.514

 

I have a CSV file like the one above.

I would like output a line chart, with 3 lines, one of A, one for B and one for C

X-axis would be Date, and Y-axis would be Level.

 

If the CSV file is organized as below, I could generate the chart I want easily

 

CSV file B

Date, A Site, B Site C Site

12/6, 12.435, 43.456, 12.212

13/6, 53.454, 14.542, 2.321

14/6, 1.545, 21.512, 32.514

 

Would anyone advise on plotting the graph directly from CSV file A, or a method to convert file A to B?

 

I am a newbie of Log Parser, just use it for one week

Regards,

Eric

  

 

Does Management UI extension work via remote connection?

$
0
0

Hi there,

If I want to implement my custom IIS Manager Module (using .NET) that extends Management UI (let's say brings a custom ModulePageInfo) how can I make it work when connecting to remote IIS on another box? Is it even possible?

The idea is that I want UI Extension where I can right-click on a website to do some stuff. But I want to install it once on my local machine (to extend my local IIS Manager), and then connect to remote IIS (machines) and use it against remote web sites.

Best Wishes,

- Oleg

Read Environment Variable in Rewrite Rule?

$
0
0

I want to restrict access to a non-production ASP.NET Core website. The ASP.NET Core website has the "ASPNETCORE_ENVIRONMENT" environment variable set to "Staging". Can the value of "ASPNETCORE_ENVIRONMENT" be used in IIS rewrite rule? The following rule is not working:

<rule name="Restrict access if the site is not production" stopProcessing="true"><match url=".?" /><conditions><add input="{APP_WARMING_UP}" pattern="1" negate="true" /><add input="{HTTP_HOST}" pattern="^localhost$" negate="true" /><add input="{ASPNETCORE_ENVIRONMENT}" pattern="^Production$" negate="true" /></conditions><action type="CustomResponse" statusCode="403" statusReason="Forbidden" /></rule>

Intermittent 500.19 Errors on IIS 8.5

$
0
0

Since moving our ASP.NET MVC web application to Windows Server 2012 R2 w/ IIS 8.5, we have started to receive intermittent 500.19 errors. The site will launch fine, the site will run fine, and then with no warning or reason the site will start throwing 500.19 errors with an error code of 0x80070006. Once we receive the application pool, the site starts functioning properly. 

IIS 6 Management Compatibility Dependency for Installer

$
0
0

Hi,

We have a Web installer Project and we are able to create the package and install using the package only when IIS 6 Management Compatibility" windows feature turned on.

we are not able to install the package when "IIS 6 Management Compatibility" windows feature is turned off.

Let me know how to eliminate the dependency on "IIS 6 Management Compatibility" windows feature.

Or is there any workaround to achieve this.

Thanks,

Raja.


IIS Rewrite SEF Urls with subfolders

$
0
0

I've searched around quite a bit without any luck so decided it was time I asked.

I have a situation where a client wants SEF urls

www.somesite.com/sef_rewriting

www.somesite.com/foo

work fine - the problem is that what happens if sef_rewriting can also be a directory?

www.somesite.com/sef_rewriting/removing_file_extensions

IIS will automatically add a trailing slash if someone requests the following url: www.somesite.com/sef_rewriting and redirect to the sub-directory.

e.g. Structure

>wwwroot
    -foo.html
    -sef_rewriting.html>sef_rewriting
         -removing_file_extensions.html

How do I create a rule to check to see if the requested extensionless URL matches a file with a specified extension say in this case (html) and serve up that file,  IIS should NOT redirect to the sub-directory?

I found the following rule online it works for the basic case but not with sub-directories with the same name as files.

<rule name="SEF REWRITE html"><match url=".*" negate="false" /><conditions><add input="{URL}" pattern="(/[^.]*|\.(html))$" /><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /></conditions><action type="Rewrite" url="{C:0}.html" /></rule>

any help would be appreciated..

note: the file and directory naming scheme can not be changed.

PS: copy-pasted from stack-overflow - figured posting here might prove more beneficial since its specifically an iis rewrite question

Windows Server 2019: Built-in SMTP server not honoring MX records?

$
0
0

I'm setting up a new dedicated server using Windows Server 2019. It's replacing an old one based on Windows Server 2008 R2. I have had the built-in SMTP server running on the old server with no issues. I have set up the new server to act as an SMTP server as well, using my own notes from setting up the old one, as well as double checking intructions online. Basically according to the instructions here:

http://www.vsysad.com/2017/05/install-and-configure-smtp-server-on-windows-server-2016/

It's pretty much the simplest setup possible, just using the SMTP server locally (only allows connections from 127.0.0.1) with anonymous access enabled.

The problem I'm having is that e-mail will not leave C:\inetpub\mailroot\Queue and will never reach the recipients. The Windows event log contains the following warning(s):

Event 4006, smtpsvc
"Message delivery to the host '204.79.197.212' failed while delivering to the remote domain 'hotmail.com' for the following reason: The remote server did not respond to a connection attempt."

The above is just an example using a Hotmail destination address. The same kind of message is received when trying to send to addresses on other domains.

What I've tried:

  1. I have sent e-mail manually by using Telnet. The e-mail is created and received by the local SMTP server without issues, but doesn't leave the queue folder.
  2. I have run SmtpDiag against both a Hotmail and a Gmail address. No issues. The MX records are listed as expected.
  3. I have used Nslookup and confirmed that the MX records are resolved.
  4. I have successfully connected to the Hotmail and Gmail SMTP servers using Telnet.
  5. I have used Wireshark and been able to see that my server actually tries to access the IP address of the destination e-mail address domain, at port 25. So, for Hotmail, it simply resolves the IP address of hotmail.com (which is 204.79.197.212) and tries to open a connection to this address at port 25. This obviously fails, as there's no SMTP server there. My server never even attempts to access the SMTP server at the address specified in the MX record!

That last item above also ties into an interesting thing that I noticed, which is that the IP address listed in the event 4006 log message is not one of the IP addresses listed in the MX records. It is the IP address of the actual hotmail.com domain (or the IP of any other domain I try to send to). So, why is it attempting to contact the domain in the e-mail address and not one of the addresses listed in the MX records?

To futher investigate, I used Telnet to send to an e-mail in one of my own domains. Sure enough, I find a 4006 event in the log saying:

"Message delivery to the host '[my domain's IP]' failed while delivering to the remote domain '[my domain]' for the following reason: The connection was dropped by the remote host."

It again appears that the SMTP server is trying to connect to my domain's IP and port 25 and not to the address specified in the MX record.

This is as far as I've come. Maybe I'm misinterpreting something here, but it certainly looks like Windows' SMTP server is trying to connect to the e-mail address' domain directly at port 25 (ignoring MX records)... Any ideas on what I might be doing wrong or perhaps how I should proceed in troubleshooting this?

Problem with url in IIS

$
0
0

Hi,

I have a Windows Server 2008 R2 with IIS 6.2 with a default website published.

I have a url that is binded to the webserver, and when I access http://www.siteurl.com I can reach the default page.

But I have a subfolder that I need to access a website but through url (www.siteurl.com/abc/def).

When I go with IP (internal - 192.168.x.x/abc/def or external - 111.111.111.111/abc/def), I can reach the webpage, but when I try http://www.siteurl.com/abc/def from outside I get an error that "The requested URL /abc/def/ was not found on this server.".

This is driving me crazy...

What can this be? What o I need to do to fix this dns/url/whatever misconfiguration?

Thanks a lot.

BM

IIS 6.0 (Server 2003) to IIS 8.5 (Server 2012 R2)

$
0
0

Hello! 

I have been banging my head against my desk for the past couple weeks trying to figure out why I cannot migrate my IIS 6.0 (Server 2003) webwsites to IIS 8.5 (Server 2012 R2) using the MSDEPLOY tool.

I've used mostly used this blog post - https://blogs.msdn.microsoft.com/ericparvin/2014/09/12/migration-from-iis-6-to-iis-7-x-8-x/ - and due to our environment, I really need to be able to use the PUSH or PULL method to sync the servers. These servers are on the same subnet/workgroup and am logged in as a local administrator on both but I cannot get them to sync. 

Running this code.....

msdeploy -verb:sync -source:metakey=lm/w3svc/123456 ^
-dest:metakey=lm/w3svc/123456,computername=IPADDRESS -whatif

I get this error....

Error Code: ERROR_USER_NOT_ADMIN
More Information: Connected to 'IPADDRESS' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administrator on 'IPADDRESS'
Error: The remote server returned an error: (401) Unauthorized


Now as I mentioned, these servers are not on the domain and therefore I can't use domain admin credentials. How can I give permission to either push/pull and migrate to IIS 8.5?

IIS php soap webserver works until 40kb

$
0
0

Hi guys, I have a big problem with a web service soap in php 7.2. everything works very well with requests up to about 40kb. With requests above this dimension, usually with attached PDFs, the request remains pending until the timeout. Of these timeouts I can not find a trace in the failed request trace. In the c: / windows / temp folder I also find all these requests of various sizes, from 40kb to few mb truncated in the last lines of the file. I raised all the possible values ​​in the configuration editor, but I could not solve it

EDIT: Wrong section, i ve IIS 8.5 and windows server 2012R

Clarify about IIS thread

$
0
0

Hello,

I'm trying understand the IIS 8.5 behavior with my SPA app and is not asynchronous.

After read the articles:

https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/web/applicationpool-element-web-settings
https://docs.microsoft.com/pt-br/dotnet/standard/threading/the-managed-thread-pool
https://blogs.msdn.microsoft.com/tmarq/2007/07/20/asp-net-thread-usage-on-iis-7-5-iis-7-0-and-iis-6-0/
https://support.microsoft.com/en-us/help/821268/contention-poor-performance-and-deadlocks-when-you-make-calls-to-web-s
https://fullsocrates.wordpress.com/2013/02/28/asp-net-threads-thread-parameters-in-iis-worker-processes-2/
https://blogs.msdn.microsoft.com/webtopics/2009/02/13/asp-net-hang-in-iis-7-0/
https://fullsocrates.wordpress.com/2013/02/28/asp-net-threadstuning-thread-parameters-12-2/

I understand that, my application can accept 5000 simultaneos request . but my hardware have 2 core and 2 threads,Will these requests be processed in parallel?

Can i increase the thread minimum parameters?

Because when I start the vm and put it behind the loud balancer, the worker proccess enqueue much request, after some minutes all request is answer in seconds. But until the answer the customers are waiting (withe screwn).

MS FTP server on Windows 2016 not responding the same way 2008 servers do to Passive requests.

$
0
0

Hi There; thanks for reading, We have recently been upgrading our Windows Server machines to Windows Sever 2016 with FTP server on IIS 10.0 and noticed that when our current perl scripts (ver. 5.16.3) - running on redhat 7.1 - tries (on a passive connection) to get a nonexistent file from the Windows server, server won't respond with a normal "The file <fname> does not exist on the FTP server" message and instead it says: "Can't use an undefined value as a symbol reference at /usr/share/perl5/Net/FTP/dataconn.pm line 54."

 

- Please note that we are not planning to make any changes to our current ( more than 20 production products ) on redhat so upgrading the perl libraries to ver 5.18.* or even one liner change of making the connection an active connection is not possible.

  

Wondering if anybody knows about this issue or if there is any configuration that needs to be tweaked to get this thing to work.

  

Regards;

Sean

 

 


Blocking rule not working

$
0
0

Hello,

I'm trying to implement a blocking rule on the EWS virtual directory in Exchange 2010

The goal is to only allow requests from the local server (i.e. the EWS host) to be accepted.

I have created a blocking rule with the following criteria

  • {REMOTE_ADDR} does not match the pattern
  • Where the pattern = IP address of the server (e.g. 192.168.x.y)

I am observing Event 4625 (Unsuccessful login attempts) which are being performed via EWS, and in the Event details, no source network address is being reported. So the rule is not working.

I can prevent the Event 4625's by stopping the Application Pool, MSExchangeServicesAppPool; however unfortunately I have an app that relies on this application - hence why I'm trying to configure the block rule to block access to EWS from all other IP's apart from the local server.

This is my first time using URL Rewrite, would appreciate some troubleshooting suggestions

Thank you

VW

How to get rid of www in an URL

$
0
0

I am using IIS 8 with a website that can be reached using "www.mysite.com" and "mysite.com" but I would like to modify this behavior so only one is used by, for example, stripping "www". 

Let´s say that a request is made to "www.mysite.com/mypage.html". I need to change it to ""mysite.com/mypage.html".

Can this be done in IIS? If so, how?

Best regards,

Jorge Maldonado

Trying to remove segment from URL but getting 404 error

$
0
0

I have 2 rules setup in IIS. One is trying to remove a segment from the URL, if it exists, and the other redirects from HTTP to HTTPS.

The remove segment rule was just added and when I try to navigate to a URL with that segment I'm getting a 404 error. I've Goolged and tried several variants, but I can't seem to get it working. Any thoughts?

Here's the rule in question and some sample URLs.

<rule name="Test" stopProcessing="true"><match url="/SegmentToRemove(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false" /><action type="Redirect" url="https://{HTTP_HOST}{R:1}" /></rule>

From: https://subdomain.domain.com/ to https://subdomain.domain.com/


From: https://subdomain.domain.com/SegmentToRemove to https://subdomain.domain.com/

From: https://subdomain.domain.com/SegmentToRemove/ to https://subdomain.domain.com/

From: https://subdomain.domain.com/SegmentToRemove/test to https://subdomain.domain.com/test

HTTP Error 500.1002

$
0
0

Hi I get this error while using iisnode.

<configuration><system.webServer><!-- indicates that the hello.js file is a node.js application 
     to be handled by the iisnode module --><handlers><add name="iisnode" path="app.js" verb="*" modules="iisnode" /></handlers><!-- use URL rewriting to redirect the entire branch of the URL namespace
     to hello.js node.js application; for example, the following URLs will 
     all be handled by hello.js:
         http://localhost/node/express/hello/foo
         http://localhost/node/express/hello/bar
     --><iisnode devErrorsEnabled="false" /><rewrite><rules><rule name="hello"><match url="api/*" /><action type="Rewrite" url="app.js" /></rule></rules></rewrite><!-- exclude node_modules directory and subdirectories from serving
     by IIS since these are implementation details of node.js applications --><security><requestFiltering><hiddenSegments><add segment="node_modules" /></hiddenSegments></requestFiltering><authentication><anonymousAuthentication enabled="true" userName="Administrator" password="XXXXXXXXXXXXXXX" /></authentication></security><directoryBrowse enabled="true" />    </system.webServer><system.web><identity impersonate="false" /></system.web></configuration>

That is my web.config. Someone please help. Thanks Ender.

IIS 8.5 Temporary Compressed files

$
0
0

%SystemDrive%\inetpub\temp\IIS Temporary Compressed files  has all the relevant permissions still there are no folders being created when running the app.  also, creating the warning in Event viewer. 

"The directory specified for caching compressed content %1 is invalid. Static compression is being disabled."  the particular folder and permissions are available. 

This all happened after restart of IIS server and never had issues before that.  the application is running with two IIS servers and the primary server has the IIS installation in C:\  (windows server 2012) and secondary server has in D:\

need to figure out why the application related folders are not getting created in Temporary Compressed files folder. 

Thanks in advance, 

Venky

Viewing all 26542 articles
Browse latest View live


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