النتائج 1 إلى 5 من 5

الموضوع: 404 Not Found والله تعقدت وطفشت

  1. #1
    عضو فعال
    تاريخ التسجيل
    Jun 2003
    المشاركات
    1,077

    404 Not Found والله تعقدت وطفشت



    السلام عليكم

    عندي مشكلة غريبه والله يا اخواني

    لما بطلب ملف بيطلع رسالة الملف غير موجود وهو فعليا موجود على السرفر بمكانه فما الحل يرحم والديكم والله اتعبتني هالمشكلة

    مثال
    http://www.b3dery.com/clientscript/v...ons_scripts.js

    404 Not Found
    nginx/1.0.8






    التعديل الأخير تم بواسطة Damas ; 12-04-2012 الساعة 12:35 AM


  2. #2
    عضو شرف
    تاريخ التسجيل
    Mar 2003
    المشاركات
    1,899


    وعليكم السلام

    هذه المشكله من nginx

    في الاعدادات الخاصه بـ nginx ضع ملحق الملفات .js

    لن يقرأه الا اذا وضعتها في الاعدادات

    اذا كانت بالفعل موجوده هكذا

    كود:
    location ~* \.(ico|css|js|gif|jp?g|png)(\?[0-9]+)?$ {
    بدلها الى
    كود:
    location ~* \.(ico|css|js$|gif|jp?g|png)(\?[0-9]+)?$ {

    او ابحث في الاعدادات الخاصه عن هذا السطر

    كود:
    include /home/username/www/directory/nginx.conf;
    طبعاً username و directory مختلفه لديك

    وضعه في اول الاعدادت وليس في الوسط او الاخير






  3. #3
    عضو فعال
    تاريخ التسجيل
    Jun 2003
    المشاركات
    1,077


    الله يجزاك الخير اخي محمد على المساعدة

    غيرت الرابط لموقع ثاني على نفس السرفر اذا بدك تشوفه اخي محمد

    عموما هذا ما انا ركبته حتى اعرف كيف اتصرف فيه لكن عملت التالي

    كود PHP:
    pico /usr/local/nginx/conf/nginx.conf 
    وهذا محتوى الملف

    كود PHP:
    user  nobody;
    # no need for more workers in the proxy mode
    worker_processes  2;

    error_log  logs/error.log info;

    worker_rlimit_nofile  8192;

    events {
    worker_connections  1024# you might need to increase this setting for busy servers
    use epoll#  Linux kernels 2.6.x change to epoll
    }

    http {
    server_names_hash_max_size 2048;

    include    
    mime.types;
    default_type  application/octet-stream;

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;

    keepalive_timeout  10;

    gzip on;
    gzip_min_length  1100;
    gzip_buffers  4 32k;
    gzip_types    text/plain application/x-javascript text/xml text/css;
    ignore_invalid_headers on;

    client_header_timeout  3m;
    client_body_timeout 3m;
    send_timeout     3m;
    connection_pool_size  256;
    client_header_buffer_size 4k;
    large_client_header_buffers 4 32k;
    request_pool_size  4k;
    output_buffers   4 32k;
    postpone_output  1460;

    include 
    "/usr/local/nginx/conf/vhost.conf";


    كيف اعمل التعديل ؟






  4. #4
    عضو فعال
    تاريخ التسجيل
    Jun 2003
    المشاركات
    1,077


    وهنا في ملف ثاني يبدو مخصص للامتدادات

    كود PHP:
    pico /usr/local/nginx/conf/mime.types 
    وهذا الناتج

    كود PHP:
    types {
        
    text/html                             html htm shtml;
        
    text/css                              css;
        
    text/xml                              xml;
        
    image/gif                             gif;
        
    image/jpeg                            jpeg jpg;
        
    application/x-javascript              js;
        
    application/atom+xml                  atom;
        
    application/rss+xml                   rss;

        
    text/mathml                           mml;
        
    text/plain                            txt;
        
    text/vnd.sun.j2me.app-descriptor      jad;
        
    text/vnd.wap.wml                      wml;
        
    text/x-component                      htc;

        
    image/png                             png;
        
    image/tiff                            tif tiff;
        
    image/vnd.wap.wbmp                    wbmp;
        
    image/x-icon                          ico;
        
    image/x-jng                           jng;
        
    image/x-ms-bmp                        bmp;
        
    image/svg+xml                         svg;

        
    application/java-archive              jar war ear;
        
    application/mac-binhex40              hqx;
        
    application/msword                    doc;
        
    application/pdf                       pdf;
        
    application/postscript                ps eps ai;
        
    application/rtf                       rtf;
        
    application/vnd.ms-excel              xls;
        
    application/vnd.ms-powerpoint         ppt;
        
    application/vnd.wap.wmlc              wmlc;
        
    application/vnd.google-earth.kml+xml  kml;
        
    application/vnd.google-earth.kmz      kmz;
        
    application/x-7z-compressed           7z;
        
    application/x-cocoa                   cco;
        
    application/x-java-archive-diff       jardiff;
        
    application/x-java-jnlp-file          jnlp;
        
    application/x-makeself                run;
        
    application/x-perl                    pl pm;
        
    application/x-pilot                   prc pdb;
        
    application/x-rar-compressed          rar;
        
    application/x-redhat-package-manager  rpm;
        
    application/x-sea                     sea;
        
    application/x-shockwave-flash         swf;
        
    application/x-stuffit                 sit;
        
    application/x-tcl                     tcl tk;
        
    application/x-x509-ca-cert            der pem crt;
        
    application/x-xpinstall               xpi;
        
    application/xhtml+xml                 xhtml;
        
    application/zip                       zip;

        
    application/octet-stream              bin exe dll;
        
    application/octet-stream              deb;
        
    application/octet-stream              dmg;
        
    application/octet-stream              eot;
        
    application/octet-stream              iso img;
        
    application/octet-stream              msi msp msm;

        
    audio/midi                            mid midi kar;
        
    audio/mpeg                            mp3;
        
    audio/ogg                             ogg;
        
    audio/x-realaudio                     ra;

        
    video/3gpp                            3gpp 3gp;
        
    video/mp4                             mp4;
        
    video/mpeg                            mpeg mpg;
        
    video/quicktime                       mov;
        
    video/x-flv                           flv;
        
    video/x-mng                           mng;
        
    video/x-ms-asf                        asx asf;
        
    video/x-ms-wmv                        wmv;
        
    video/x-msvideo                       avi;


    اشوفها مضافة اساسا هل في شي حل ؟





    التعديل الأخير تم بواسطة Damas ; 12-04-2012 الساعة 12:59 AM

  5. #5
    عضو فعال
    تاريخ التسجيل
    Jun 2003
    المشاركات
    1,077


    الحمد لله انت عطيتني الطريق والحمد لله انحلت

    حاولت اعمل رستارت للانجن اكس طلع لي ايرور

    كود PHP:
    nginx: [emergcould not build the server_names_hashyou should increase either server_names_hash_max_size2048 or server_names_hash_bucket_size64
    nginx
    configuration file /usr/local/nginx/conf/nginx.conf test failed 
    قمت برفع القيمة والحمد لله اشتغل تمام 100%

    كثر الله خيرك اخي محمد والف شكر










ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض