zoukankan      html  css  js  c++  java
  • Apache 配置

    记录一下,Apache 关键配置,403等问题~

     1 # linux 下用户权限配置
     2 <IfModule unixd_module>
     3 #
     4 # If you wish httpd to run as a different user or group, you must run
     5 # httpd as root initially and it will switch.  
     6 #
     7 # User/Group: The name (or #number) of the user/group to run httpd as.
     8 # It is usually good practice to create a dedicated user and group for
     9 # running httpd, as with most system services.
    10 #
    11 User daemon
    12 Group daemon
    13 
    14 </IfModule>
    15 
    16 # 目录权限配置 403
    17 <Directory />
    18     #AllowOverride None
    19     #Require all denied
    20     Order deny,allow
    21     Allow from all
    22 </Directory>
    23 
    24 # 多端口配置
    25 Listen 8081 
    26 Listen 8082 
    27 Listen 8083
    28 
    29 # 站点配置
    30 <VirtualHost *:9001> 
    31     DocumentRoot "E:/php/wordpress" 
    32     ServerName localhost 
    33     ServerAlias localhost 
    34     ErrorLog "logs/wordpress-error.log" 
    35     CustomLog "logs/wordpress-access.log" common 
    36 
    37     <Directory "E:/php/wordpress"> 
    38         Options Indexes FollowSymLinks 
    39         AllowOverride All 
    40         Order allow,deny 
    41         Allow from all 
    42     </Directory> 
    43 </VirtualHost>
  • 相关阅读:
    网络编程
    Python之异常处理
    python第31天作业(面向对象高级)
    day01_计算机的基础介绍
    第一章/第二章课后习题
    day12
    day11
    day09-10
    day08
    day07
  • 原文地址:https://www.cnblogs.com/everyone/p/4663603.html
Copyright © 2011-2022 走看看