When are incoming requests logged to file in IIS? Does it happen before or after they are processed and response is sent to the client? What happens in case if request is accepted but response isn't sent back (is the incomming request logged to file in this scenario)?
yojimbo87's questions
I'm using nginx as a reverse proxy for website running on IIS 7.5. Website is bound to sub-1.foo.bar
. Nginx configuration looks like this:
server {
listen 80;
server_name sub.foo.bar;
location / {
proxy_pass http://sub-1.foo.bar;
proxy_set_header Host $host;
proxy_set_header X-Accel-Expires 0;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
What I want to do is forward requests which come to sub.foo.bar
(linux machine with nginx) to sub-1.foo.bar
(windows machine with IIS and my website). However what happens is
- when I access sub.foo.bar, I get 404 page
- when I access sub-1.foo.bar directly I get my website served normally from IIS
- nginx seems to forward requests normally to windows machine
- I can't see any incoming requests from IIS logs when I access sub.foo.bar
- when I add binding for sub.foo.bar on IIS, website gets proxied normally with nginx
I would appreciate any ideas on what might be wrong with my setup. Thanks!
Is it (or will it be) possible to install IIS 8 on Windows Server 2008 (R2) or it's only meant for Windows Server "8"/2012?
I found in IIS HTTP Redirect feature, but I can only redirect all incoming requests to specific destination. Is it possible to redirect incoming requests to specific URLs in IIS? For example:
my.domain.com/blog/about -> other.domainxyz.com/site/about
my.domain.com/blog/post/5 -> other.domainxyz.com/site/5
UPDATE
This is how web.config looks like:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="home" stopProcessing="true">
<match url="^$" />
<action type="Redirect" url="http://yojimbo87.github.com/" />
</rule>
<rule name="about" stopProcessing="true">
<match url="^Blog/About$" />
<action type="Redirect" url="http://yojimbo87.github.com/about/about.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
I havent't found URL Rewrite module among the Role Services although HTTP Redirection is there.
Does Windows Server 2008 R2 have similar limitations to maximum number of opened files like linux have?
When I install ASP.NET MVC 3 RTM on Windows Server 2008 R2 (Web server edition) will I also be able to run MVC 2 and MVC 1 web applications without installing them or do I need to install all of them separately?
I want to host two different websites on the same domain, example:
<VirtualHost *:80>
DocumentRoot /var/www/www1/
ServerName my.domain.com
...
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/www2/
ServerName my.domain.com/www2
...
</VirtualHost>
This config is ofcourse wrong, but it depicts what I want to do. When someone go to my.domain.com he will be served by web application from /var/www/www1. When someone go to my.domain.com/www2 he will be served by web application from /var/www/www2. Is this possible in Apache?
Is it possible to monitor and gather statistics in realtime (CPU, memory, HDD, network, ... - something like dstat) of guest systems with libvirt through console from host system (KVM based)? If yes, do those guests need to be created through libvirt?
How can I monitor statistics like cpu, memory, disk or network activity from KVM host of some guest system. It needs to be from command line of the host system. Is it somehow possible?