أباتشي تشغيل تلقائي

بواسطة : المشرف في 11 الاثنين 8th ، 2008

بداية واستئناف اباتشي خادم تهيئتها لبدء تلقائيا.
الخادم كان سابقا على النحو التالي.
 # cd /usr/local/etc/rc.d
# cp /usr/local/apache2/bin/apachectl /usr/local/etc/rc.d/apache.sh
# chmod 0755 /usr/local/etc/rc.d/apache.sh 
هي ، apachectl start البدء مؤخرا على النحو التالي.
/etc/rc.local
 # Start Apache
/usr/local/apache2/bin/apachectl start 
apachectl ستمر إذا كنت لا تعرف كيفية تركيب صيغ مختلفة ، وتبدو في ما يلي.
 # which apachectl 

العلامة الوصفية محارف مشوهة إذا قمت بتحديد

بواسطة : المشرف في 11 الاثنين 5th ، 2008

نسخة سابقة من Apache افتراضي AddDefaultCharset التوجيه "ايزو - 8859 - 1 (اللغات الأوروبية واللاتينية والفرنسية والألمانية)" لذلك.
Apache2.2 في وقت لاحق ، AddDefaultCharset الإعداد الافتراضي لهذه التعليمات ليست كذلك.
httpd.conf والحلول.
httpd.conf وعادة ما تقع أدناه.
 /usr/local/apache2/conf 
أو
 /usr/local/etc/apache2 

httpd.conf
 AddDefaultCharset  off 
ولكن ، في هذه الحالة ، في الصفحات التالية جميع charset يجب أن تكون محددة.
 <META http-equiv=Content-Type content="text/html; charset=Shift_JIS"> 

كل المحتوى هو نفس طابع الترميز (محارف) في charset يمكنك أيضا أن تحدد بعد.
httpd.conf
 AddDefaultCharset  EUC-JP 

عند الانتهاء من ورطة ، لاستئناف اباتشي.
 # /usr/local/apache2/bin/apachectl restart 
apachectl ستمر إذا كنت لا تعرف كيفية تركيب صيغ مختلفة ، وتبدو في ما يلي.
 # which apachectl 

لا يتم عرض محتويات الدليل

بواسطة : المشرف في 11 الاثنين 5th ، 2008

إذا قمت بإدخال اسم دليل على عنوان المتصفح الخاص بك الميدان ، index.html / index.php / index.cgi إذا index.html / index.php / index.cgi هذا الموضوع ، وكيفية تفاديها ، وانظر ما زالت قائمة ملف.
جوجل في index of اذا كنت البحث ، ستحصل على ما分ري.
httpd.conf والحلول.
httpd.conf وعادة ما تقع أدناه.
 /usr/local/apache2/conf 
أو
 /usr/local/etc/apache2 

httpd.conf
 Options  Indexes  FollowSymLinks 
Indexes إزالة
 Options FollowSymLinks 

عند الانتهاء من ورطة ، Apache
 # /usr/local/apache2/bin/apachectl restart 
apachectl ستمر إذا كنت لا تعرف كيفية تركيب صيغ مختلفة ، وتبدو في ما يلي.
 # which apachectl 

لاستخدام مبادرة كلينتون

بواسطة : المشرف في 11 الاثنين 5th ، 2008

httpd.conf والحلول.
httpd.conf وعادة ما تقع أدناه.
 /usr/local/apache2/conf 
أو
 /usr/local/etc/apache2 

وعلق من الرصاص (#) ، وإزالة
httpd.conf
 AddHandler cgi-script .cgi 

Options لتغيير التوجيه
httpd.conf
 <Directory />
     Options ExecCGI FollowSymLinks Includes MultiViews 
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory> 

العنوان من "~" (التلدة) للقضاء

بواسطة : المشرف في 11 الاثنين 5th ، 2008

httpd.conf والحلول.
httpd.conf وعادة ما تقع أدناه.
 /usr/local/apache2/conf 
أو
 /usr/local/etc/apache2 

httpd.conf
 Alias / USERNAME / "/home/ USERNAME /public_html/"
<Directory "/home/ USERNAME /public_html">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory> 
Directory التوجيه في مثال على ذلك. يرجى تغيير إذا لزم الأمر.