Welcome! Log In Create A New Profile

Advanced

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

April 04, 2014 06:38PM
Here is my config.

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

root z:/server/websites/ps/public_www;
index index.php index.html index.htm default.html default.htm;
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;
}
}

For my machine running nginx connecting to my mapped hard drive. The hard drive name is Z:/

I Have apache running on port 8000 for php and html files only serving static content. All dynamic content is served by nginx. But when i go to access a nginx file i get given a 404 not found error.
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: 147
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