[PHP] ubuntu + django + apache + wsgi + PHP服务 →→→→→进入此内容的聊天室

来自 , 2019-12-24, 写在 PHP, 查看 109 次.
URL http://www.code666.cn/view/f0031c7a
  1. <VirtualHost *:80>
  2.         ServerAdmin webmaster@localhost
  3.         ServerName  www.yourdomain.com
  4.         DocumentRoot /var/www
  5.         <Directory />
  6.                 Options FollowSymLinks
  7.                 AllowOverride None
  8.         </Directory>
  9.         <Directory /var/www/>
  10.                 Options Indexes FollowSymLinks MultiViews
  11.                 AllowOverride None
  12.                 Order allow,deny
  13.                 allow from all
  14.         </Directory>
  15.         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  16.         <Directory "/usr/lib/cgi-bin">
  17.                 AllowOverride None
  18.                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  19.                 Order allow,deny
  20.                 Allow from all
  21.         </Directory>
  22.  
  23.         ErrorLog ${APACHE_LOG_DIR}/error.log
  24.  
  25.         # Possible values include: debug, info, notice, warn, error, crit,
  26.        # alert, emerg.
  27.        LogLevel warn
  28.  
  29.         CustomLog ${APACHE_LOG_DIR}/access.log combined
  30.  
  31.     Alias /doc/ "/usr/share/doc/"
  32.     <Directory "/usr/share/doc/">
  33.         Options Indexes MultiViews FollowSymLinks
  34.         AllowOverride None
  35.         Order deny,allow
  36.         Deny from all
  37.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  38.     </Directory>
  39. </VirtualHost>
  40. <VirtualHost *:80>
  41.     DocumentRoot /var/django_www/
  42.     ServerName www.yourdomain.com
  43.     WSGIScriptAlias / /var/django_www/djangodemo/djangodemo.wsgi
  44.     <Directory /var/django_www/djangodemo/>
  45.       Options +ExecCGI
  46.       Order allow,deny
  47.       Allow from all
  48.     </Directory>
  49. </VirtualHost>
  50.  

回复 " ubuntu + django + apache + wsgi + PHP服务"

这儿你可以回复上面这条便签

captcha