Welcome! Log In Create A New Profile

Advanced

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

Kevin Worthington
April 04, 2014 06:58PM
Try:

server {
listen 80;
listen [::]:80;
server_name domain.com www.domain.com;

# removed lines here...

location / {
root z:/server/websites/ps/public_www;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8000;
expires 3s;
max_ranges 0;
}
location ~ \.flv$ {
flv;
limit_rate 200k;
root z:/server/websites/ps/public_www;
expires max;
}
location ~ \.mp4$ {
limit_rate 200k;
root z:/server/websites/ps/public_www;
expires max;
}
location ~ \.gif$ {
limit_rate 50k;
root z:/server/websites/ps/public_www;
expires max;
}
location ~* \.(avi|m4v|mov|divx|webm|ogg|mp3|mpeg|mpg|zip|rar)$ {
limit_rate 90k;
root z:/server/websites/ps/public_www;
expires max;
}
location ~*
\.(ico|png|jpg|jpeg|gif|flv|mp4|avi|m4v|mov|divx|webm|ogg|
mp3|mpeg|mpg|swf|css|js|txt|zip|rar|xml)$
{
root z:/server/websites/ps/public_www;
expires max;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
return 404;
}
location ~
^/(xampp|security|phpmyadmin|licenses|webalizer|server-
status|server-info|cpanel|configuration.php)
{
return 404;
}
}

Best regards,
Kevin
--
Kevin Worthington
kworthington@gmail.com
http://kevinworthington.com/
http://twitter.com/kworthington


On Fri, Apr 4, 2014 at 6:39 PM, c0nw0nk <nginx-forum@nginx.us> wrote:

> Sorry made a mistake and can't edit my previous post. Nginx handles all
> static content and Apache handles all dynamic content.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,249008,249018#msg-249018
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Windows | Nginx Mapped Hard Drive | Network Sharing

C0nw0nk W0nky April 04, 2014 04:32PM

Re: Windows | Nginx Mapped Hard Drive | Network Sharing

Kevin Worthington April 04, 2014 04:50PM

RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 04, 2014 06:02PM

Re: Windows | Nginx Mapped Hard Drive | Network Sharing

Kevin Worthington April 04, 2014 06:10PM

RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 04, 2014 06:16PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

itpp2012 April 04, 2014 06:32PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 04, 2014 06:38PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 04, 2014 06:39PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 04, 2014 06:56PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

itpp2012 April 04, 2014 06:59PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

Kevin Worthington April 04, 2014 06:58PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 04, 2014 07:00PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

Kevin Worthington April 04, 2014 07:00PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 04, 2014 07:14PM

RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 04, 2014 07:28PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

itpp2012 April 05, 2014 07:04AM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 05, 2014 12:58PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

itpp2012 April 05, 2014 01:15PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 05, 2014 01:34PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

itpp2012 April 05, 2014 03:23PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 06, 2014 12:30PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 06, 2014 06:08PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

itpp2012 April 07, 2014 03:24AM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

B.R. April 06, 2014 08:44PM

Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing

c0nw0nk April 07, 2014 01:01PM

Re: Windows | Nginx Mapped Hard Drive | Network Sharing

itpp2012 April 04, 2014 04:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 177
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready