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

2014-04-07 Thread c0nw0nk
So does anyone know how to edit the SYSTEM account privileges if not i have a way around it anyway. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249008,249082#msg-249082 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

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

2014-04-07 Thread itpp2012
c0nw0nk Wrote: > Its a interesting issue maybe the SYSTEM user group in windows does > not have access to the mapped hard drives ? This is default behavior, ea: http://stackoverflow.com/questions/13178892/access-file-from-shared-folder-from-windows-service http://stackoverflow.com/questions/659013

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

2014-04-06 Thread B.R.
I have little knowledge about Windows, but I know that the SYSTEM account is usually related to processes running as services. SYSTEM has restricted rights on number of things, despite appearing as a 'super-account', an attempt from Windows to mitigate services 'super-powers'. It would not surpris

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

2014-04-06 Thread c0nw0nk
After doing some more testing there is one way it does not work still. When Nginx runs on windows it runs under your user account. For example my account name is root. So it says nginx is running under the root user. But when i restart the server(local machine) it says nginx is running under the S

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

2014-04-06 Thread c0nw0nk
I also did use the Microsoft fix it that you posted itpp2012 so as of what actually fixed it i think it was probably the Microsoft option but i don't need the file cache anyway. Thanks for all the help much appreciated. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249008,249047#msg-2

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

2014-04-05 Thread itpp2012
c0nw0nk Wrote: --- > I nulled out my open file cache and what do you know i can restart > nginx as much as i like and no issues. :) > > So it is open_file_cache that is incompatible with the network sharing > feature on windows. It all depends w

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

2014-04-05 Thread c0nw0nk
Thanks for the information and sorry for making so many posts and such a fuss over it. I think i may have found the true culprit behind this silly error. In my Http server section of my nginx config i had this. #open_file_cache max=90 inactive=10m; #open_file_cache_valid20m; #ope

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

2014-04-05 Thread itpp2012
c0nw0nk Wrote: --- > Because when i first connect to the drive all works fine i can access > the media, Then i restart nginx and it says 404 not found. > > What is the file path to delete the caches of the windows file shares. There is no cache

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

2014-04-05 Thread c0nw0nk
http://i633.photobucket.com/albums/uu52/C0nw0nk/Untitled9.png If you look at that picturei think that is why i have a 404 error. Because when i first connect to the drive all works fine i can access the media, Then i restart nginx and it says 404 not found. What is the file path to delete the cac

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

2014-04-05 Thread itpp2012
c0nw0nk Wrote: --- > Try it with a mp4,flv,jpg file. Not documents that have a plain text > mime type. 127.0.0.1 - - [05/Apr/2014:12:58:46 +0200] "GET /29092007003.mp4 HTTP/1.1" 200 245770434 "-" "Mozilla/5.0 (Windows NT CISNSA; Win32; x86) Gecko

RE: Windows | Nginx Mapped Hard Drive | Network Sharing

2014-04-04 Thread C0nw0nk W0nky
Try it with a mp4,flv,jpg file. Not documents that have a plain text mime type. > To: nginx@nginx.org > Subject: Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing > From: nginx-fo...@nginx.us > Date: Fri, 4 Apr 2014 18:59:50 -0400 > > I did a simple config: > &

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

2014-04-04 Thread c0nw0nk
I think it is a nginx issue it works fine on the localhost and i have full read write and execute access to that hard drive via my remote machine even browsing it and confirm the files exsist nginx keeps saying 404 not found. I think its a bug. Posted at Nginx Forum: http://forum.nginx.org/read.

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

2014-04-04 Thread c0nw0nk
Yep that is my current config and i still recieve a 404 error accessing my static files jpg, mp4, flv etc. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249008,249023#msg-249023 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org

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

2014-04-04 Thread itpp2012
I did a simple config: server { listen 80; server_name localhost; root Y:/www.mydomain.nl; index index.php index.html index.htm default.html default.htm; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; #proxy_pass h

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

2014-04-04 Thread Kevin Worthington
I tested it earlier with 1.5.12... Best regards, Kevin -- Kevin Worthington kworthing...@gmail.com http://kevinworthington.com/ http://twitter.com/kworthington On Fri, Apr 4, 2014 at 6:56 PM, c0nw0nk wrote: > Also if it helps my current version of nginx is 1.5.12 > > Posted at Nginx Forum: > h

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

2014-04-04 Thread c0nw0nk
Also if it helps my current version of nginx is 1.5.12 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249008,249019#msg-249019 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

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

2014-04-04 Thread Kevin Worthington
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_

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

2014-04-04 Thread c0nw0nk
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

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

2014-04-04 Thread c0nw0nk
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_

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

2014-04-04 Thread itpp2012
c0nw0nk Wrote: --- > Same issue removed it from the server block i don't think nginx is > compatible with windows network sharing. It is compatible and works perfectly when done properly, post conf and describe how drives are mapped and in which

RE: Windows | Nginx Mapped Hard Drive | Network Sharing

2014-04-04 Thread C0nw0nk W0nky
Same issue removed it from the server block i don't think nginx is compatible with windows network sharing. Subject: Re: Windows | Nginx Mapped Hard Drive | Network Sharing From: kworthing...@gmail.com Date: Fri, 4 Apr 2014 18:08:44 -0400 To: nginx@nginx.org Replied on SO. Mirroring here

Re: Windows | Nginx Mapped Hard Drive | Network Sharing

2014-04-04 Thread Kevin Worthington
7:55 -0400 > Subject: Re: Windows | Nginx Mapped Hard Drive | Network Sharing > From: kworthing...@gmail.com > To: nginx@nginx.org > > Answered your question here: > http://stackoverflow.com/questions/22870814/nginx-mapped-hard-drive-network-sharing/22872717#22872717 > >

RE: Windows | Nginx Mapped Hard Drive | Network Sharing

2014-04-04 Thread C0nw0nk W0nky
| Nginx Mapped Hard Drive | Network Sharing From: kworthing...@gmail.com To: nginx@nginx.org Answered your question here: http://stackoverflow.com/questions/22870814/nginx-mapped-hard-drive-network-sharing/22872717#22872717 Best regards, Kevin -- Kevin Worthington kworthing...@gmail.com http

Re: Windows | Nginx Mapped Hard Drive | Network Sharing

2014-04-04 Thread itpp2012
Apart from Kevin's answer, if you are running nginx as a service that service must map the drive letter and then start nginx. When you map a drive as a user the service running nginx does not have access to that user-mapped drive. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249008,24

Re: Windows | Nginx Mapped Hard Drive | Network Sharing

2014-04-04 Thread Kevin Worthington
Answered your question here: http://stackoverflow.com/questions/22870814/nginx-mapped-hard-drive-network-sharing/22872717#22872717 Best regards, Kevin -- Kevin Worthington kworthing...@gmail.com http://kevinworthington.com/ http://twitter.com/kworthington On Fri, Apr 4, 2014 at 4:30 PM, C0nw0nk