NGINX Config & Partkeepr

    • OMV 1.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • NGINX Config & Partkeepr

      Hi

      First off thanks to tekkbebe, ryecoaaron, davidh2k for the advice on my NAS build, before the recent upgrade I had 77 days of uptime with no issues running like a dream - Cheers :thumbsup:

      So finally upgraded to version 1 of OMV and changed from Apache to NGINX for the web server, I've had no problem moving DokuWiki across but have run into an issue with
      Partkeepr, unfortunately Partkeepr is no longer supported and their forums are dying a slow death - so I don't expect to get an answer to my question (forum.partkeepr.org/viewtopic.php?f=2&t=1722) which is a shame as it's a cool electronics database and I've spent a while indulging the librarian in my by entering my resistors, capacitors and general electronic bits and bobs into.

      Anyway back to my question, I have install the NGINX plug in and configured three servers 1) Dokuwki 2) Partkeepr and 3) Test Website. Dokuwiki works after I added some addition NGINX config taken from here https://www.dokuwiki.org/install:nginx.

      My problem is that Partkeepr shows the log in screen but fails when I enter my username and password ?( . It seems from reading around the web that NGINX has an issue with PATH_INFO and I have to say that I'm a little bit out of my depth here and understand bits but not enough to work up a fix. I suspect it something similar to the dokuwiki config and
      I've tried a copy and paste then tweak and it didn't work :(

      Appreciate that this isn't really an OMV issue but thought I'd ask, won't be offend if no one answers!

      Below is the setting for the NGINX Pool and server as well as the error message from Partkeepr

      Pool Settings

      Source Code

      1. User: NGINX
      2. Group: NGINX
      3. Display Errors: Yes
      4. Html Errors: No
      5. Max Execution Time: 120
      6. Memory Limit: 256
      7. Max Post Size: 8


      NGINX Config

      Source Code

      1. <nginx>
      2. <enable>1</enable>
      3. <server_names_hash_bucket_size>32</server_names_hash_bucket_size>
      4. <servers>
      5. <server>
      6. <uuid>c660e64f-8262-401b-b53a-204eeeb4e62f</uuid>
      7. <enable>1</enable>
      8. <sharedfolderref>29834ea7-81f5-4f48-90d1-68e4a090cd58</sharedfolderref>
      9. <use_root>1</use_root>
      10. <use_public_directory>0</use_public_directory>
      11. <public_directory>public_html</public_directory>
      12. <host_type>port</host_type>
      13. <server_name></server_name>
      14. <port>8090</port>
      15. <port_default_server>0</port_default_server>
      16. <ssl_enable>0</ssl_enable>
      17. <ssl_port></ssl_port>
      18. <ssl_port_default_server>0</ssl_port_default_server>
      19. <sslcertificateref></sslcertificateref>
      20. <ssl_force>0</ssl_force>
      21. <php_enable>1</php_enable>
      22. <php_pool_ref>4e0f8da2-30cc-4368-bb85-906c9ea31c64</php_pool_ref>
      23. <php_use_default_config>1</php_use_default_config>
      24. <use_index>1</use_index>
      25. <use_index_html>1</use_index_html>
      26. <use_index_php>1</use_index_php>
      27. <autoindex>0</autoindex>
      28. <deny_htaccess>0</deny_htaccess>
      29. <log_enable>1</log_enable>
      30. <large_client_header_buffers>8</large_client_header_buffers>
      31. <extra_options>location / {
      32. try_files $uri $uri/ @dokuwiki;
      33. }
      34. location ~ ^/lib.*\.(gif|png|ico|jpg)$ {
      35. expires 30d;
      36. }
      37. location = /robots.txt { access_log off; log_not_found off; }
      38. location = /favicon.ico { access_log off; log_not_found off; }
      39. location ~ /\. { access_log off; log_not_found off; deny all; }
      40. location ~ ~$ { access_log off; log_not_found off; deny all; }
      41. location @dokuwiki {
      42. rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
      43. rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
      44. rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&amp;id=$2 last;
      45. rewrite ^/(.*) /doku.php?id=$1 last;
      46. }
      47. location ~ \.php$ {
      48. try_files $uri =404;
      49. fastcgi_pass unix:/var/run/php-fpm/dokuwiki.sock;
      50. fastcgi_index index.php;
      51. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      52. include /etc/nginx/fastcgi_params;
      53. fastcgi_param QUERY_STRING $query_string;
      54. fastcgi_param REQUEST_METHOD $request_method;
      55. fastcgi_param CONTENT_TYPE $content_type;
      56. fastcgi_param CONTENT_LENGTH $content_length;
      57. fastcgi_intercept_errors on;
      58. fastcgi_ignore_client_abort off;
      59. fastcgi_connect_timeout 60;
      60. fastcgi_send_timeout 180;
      61. fastcgi_read_timeout 180;
      62. fastcgi_buffer_size 128k;
      63. fastcgi_buffers 4 256k;
      64. fastcgi_busy_buffers_size 256k;
      65. fastcgi_temp_file_write_size 256k;
      66. }
      67. location ~ /(data|conf|bin|inc)/ {
      68. deny all;
      69. }
      70. location ~ /\.ht {
      71. deny all;
      72. }</extra_options>
      73. </server>
      74. <server>
      75. <uuid>e8d2e342-7e7e-41fe-aeb8-e42dea4af16d</uuid>
      76. <enable>1</enable>
      77. <sharedfolderref>2c30611d-00ff-4cdb-9dc9-8bb78c60d4e0</sharedfolderref>
      78. <use_root>1</use_root>
      79. <use_public_directory>0</use_public_directory>
      80. <public_directory>public_html</public_directory>
      81. <host_type>port</host_type>
      82. <server_name></server_name>
      83. <port>8091</port>
      84. <port_default_server>0</port_default_server>
      85. <ssl_enable>0</ssl_enable>
      86. <ssl_port></ssl_port>
      87. <ssl_port_default_server>0</ssl_port_default_server>
      88. <sslcertificateref></sslcertificateref>
      89. <ssl_force>0</ssl_force>
      90. <php_enable>1</php_enable>
      91. <php_pool_ref>4e0f8da2-30cc-4368-bb85-906c9ea31c64</php_pool_ref>
      92. <php_use_default_config>1</php_use_default_config>
      93. <use_index>1</use_index>
      94. <use_index_html>1</use_index_html>
      95. <use_index_php>1</use_index_php>
      96. <autoindex>0</autoindex>
      97. <deny_htaccess>0</deny_htaccess>
      98. <log_enable>1</log_enable>
      99. <large_client_header_buffers>8</large_client_header_buffers>
      100. <extra_options></extra_options>
      101. </server>
      102. <server>
      103. <uuid>a7a09b76-0ac4-4677-929c-b14d7d4e2b75</uuid>
      104. <enable>1</enable>
      105. <sharedfolderref>e2e71d96-dffe-4c18-9894-4adf27e1aff5</sharedfolderref>
      106. <use_root>1</use_root>
      107. <use_public_directory>0</use_public_directory>
      108. <public_directory>public_html</public_directory>
      109. <host_type>port</host_type>
      110. <server_name></server_name>
      111. <port>8092</port>
      112. <port_default_server>0</port_default_server>
      113. <ssl_enable>0</ssl_enable>
      114. <ssl_port></ssl_port>
      115. <ssl_port_default_server>0</ssl_port_default_server>
      116. <sslcertificateref></sslcertificateref>
      117. <ssl_force>0</ssl_force>
      118. <php_enable>1</php_enable>
      119. <php_pool_ref>4e0f8da2-30cc-4368-bb85-906c9ea31c64</php_pool_ref>
      120. <php_use_default_config>1</php_use_default_config>
      121. <use_index>1</use_index>
      122. <use_index_html>1</use_index_html>
      123. <use_index_php>0</use_index_php>
      124. <autoindex>0</autoindex>
      125. <deny_htaccess>0</deny_htaccess>
      126. <log_enable>1</log_enable>
      127. <large_client_header_buffers>8</large_client_header_buffers>
      128. <extra_options></extra_options>
      129. </server>
      130. </servers>
      131. </nginx>
      Display All


      Partkeepr Error

      HTML Source Code

      1. Critical Error
      2. Details
      3. ==================================
      4. The server returned a response which we were not able to interpret.
      5. Backtrace
      6. ==================================
      7. undefined
      8. Request
      9. ==================================
      10. {"url":"rest.php/Auth/login","success":null,"failure":null,"method":"POST","params":"{\"username\":\"[i]{USERNAME REMOVE}[/i]\",\"password\":\"[i]{REMOVED}[/i]\"}","headers":{"call":"login","lang":"en_US"}}
      11. Response
      12. ==================================
      13. <html>
      14. <head><title>404 Not Found</title></head>
      15. <body bgcolor="white">
      16. <center><h1>404 Not Found</h1></center>
      17. <hr><center>nginx/1.2.1</center>
      18. </body>
      19. </html>
      20. <!-- a padding to disable MSIE and Chrome friendly error page -->
      21. <!-- a padding to disable MSIE and Chrome friendly error page -->
      22. <!-- a padding to disable MSIE and Chrome friendly error page -->
      23. <!-- a padding to disable MSIE and Chrome friendly error page -->
      24. <!-- a padding to disable MSIE and Chrome friendly error page -->
      25. <!-- a padding to disable MSIE and Chrome friendly error page -->
      26. Server Configuration
      27. ==================================
      28. doctrine_orm_version: 2.3.3
      29. doctrine_dbal_version: 2.3.4
      30. doctrine_common_version: 2.3.0
      31. php_version: 5.4.4-14+deb7u14
      32. maxUploadSize: 2097152
      33. availableImageFormats: 3FR,A,AAI,AI,ART,ARW,AVI,AVS,B,BGR,BGRA,BIE,BMP,BMP2,BMP3,BRF,C,CAL,CALS,CANVAS,CAPTION,CIN,CIP,CLIP,CMYK,CMYKA,CR2,CRW,CUR,CUT,DCM,DCR,DCX,DDS,DFONT,DNG,DPX,EPDF,EPI,EPS,EPS2,EPS3,EPSF,EPSI,EPT,EPT2,EPT3,ERF,FAX,FITS,FRACTAL,FTS,G,G3,GIF,GIF87,GRADIENT,GRAY,GROUP4,HALD,HDR,HISTOGRAM,HRZ,HTM,HTML,ICB,ICO,ICON,INFO,INLINE,IPL,ISOBRL,J2C,J2K,JBG,JBIG,JNG,JP2,JPC,JPEG,JPG,JPX,K,K25,KDC,LABEL,M,M2V,M4V,MAC,MAP,MAT,MATTE,MEF,MIFF,MNG,MONO,MOV,MP4,MPC,MPEG,MPG,MRW,MSL,MTV,MVG,NEF,NRW,NULL,O,ORF,OTB,OTF,PAL,PALM,PAM,PATTERN,PBM,PCD,PCDS,PCL,PCT,PCX,PDB,PDF,PDFA,PEF,PES,PFA,PFB,PFM,PGM,PGX,PICON,PICT,PIX,PJPEG,PLASMA,PNG,PNG24,PNG32,PNG8,PNM,PPM,PREVIEW,PS,PS2,PS3,PSB,PSD,PTIF,PWP,R,RADIAL-GRADIENT,RAF,RAS,RGB,RGBA,RGBO,RLA,RLE,SCR,SCT,SFW,SGI,SHTML,SR2,SRF,STEGANO,SUN,TEXT,TGA,THUMBNAIL,TIFF,TIFF64,TILE,TIM,TTC,TTF,TXT,UBRL,UIL,UYVY,VDA,VICAR,VID,VIFF,VST,WBMP,WMV,WPG,X,X3F,XBM,XC,XCF,XPM,XPS,XV,XWD,Y,YCbCr,YCbCrA,YUV
      Display All
      Kentish

      OMV 3. SNAPRaid 3 x Western Digital Red 2TB / 3 x Western Digital Red 3TB (2 parity)
      Fractal Design R4, ASRock Z87 PRO3 Motherboard, 4 Gig RAM DDR3, Haswell i3 3.2GHZ
      Streaming from Emby to 3 x Samsung Smart TV, Laptops, Tablets, XBox One and PS4.


      abandoned Blog: thekentishman.wordpress.com
    • Thanks tekkb, I'll take a proper look after the kids have gone to sleep. It would be nice to stop running a VM for one application.
      Kentish

      OMV 3. SNAPRaid 3 x Western Digital Red 2TB / 3 x Western Digital Red 3TB (2 parity)
      Fractal Design R4, ASRock Z87 PRO3 Motherboard, 4 Gig RAM DDR3, Haswell i3 3.2GHZ
      Streaming from Emby to 3 x Samsung Smart TV, Laptops, Tablets, XBox One and PS4.


      abandoned Blog: thekentishman.wordpress.com