Apache configuration almost killed me.

Source: Internet
Author: User

Configuration configuration is always incorrect. It is always servo by mod_python, but the priority cannot be found. I went to the toilet and thought for a moment. Do you think there will be. htcaccess in the directory. When I checked it back, I found a. htcaccess file was hiding in the directory.

After the problem is fixed, the following error is returned. If you do not have the permission, directorindex cannot take effect. If you are depressed, try again and try again. Try to remove sethander. Haha, it's all right. It's really hard to figure it out here. PHP supports it by default. You don't need to write sethander, but when you used to configure Django, this option is required to configure a directory to support PHP. Now back up my configuration.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
Namevirtualhost 61.152.123165: 80 <Virtualhost> Server Admin 8863824@gmail.comServerName www. daybang. comdocumentroot/home/www/daybang<DirectoryHome daybang WWW></Directory> Options indexes followsymlinks multiviewsallowoverride noneorder allow, denyallow from all <DirectoryHome daybang WWW Medias> Order deny, allowallow from all </Directory><Locationmatch> Sethandler none </Locationmatch> Errorlog/var/log/apache2/daybang_error.loglevel warncustomlog/var/log/apache2/daybang_access.log combinedserversignature onsethandler Python-programpythonhandler Django. core. handlers. modpythonpythonpath "sys. path + ['/home/WWW'] + ['/home/www/Django-0.96'] "pythondebug onsetenv django_settings_module daybang. settingsalias/Media/home/www/daybang/mediaalias/medias/home/www/daybang/mediasalias/tenpay/home/www/daybang/tenpay <LocationMedia> Sethandler none</Location><LocationMedias> Sethandler none </Location><LocationTenpay> Sethandler application/X-httpd-phporder deny, allowallow from all</Location></Virtualhost><Virtualhost> Serveradmin 8863824@gmail.comServerName www. hhuai. cnserveralias hhuai.cn hn-go.com www. hn-go.comDirectoryIndex index. php index.html DocumentRoot/home/www/hhuai/WordPress # sethandler application/X-httpd-PHP <DirectoryHome WWW WordPress hhuai> Directoryindex index. php index.html # options indexes followsymlinks multiviewsallowoverride noneorder allow, denyallow from all</Directory><Locationmatch> Sethandler none </Locationmatch> Errorlog/var/log/apache2/hhuai_cn_error.logloglevel warncustomlog/var/log/apache2/hhuai_cn_access.log combined </Virtualhost> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.