apache httpd.conf配置

主配置文件是/etc/httpd/conf/httpd.conf。

配置存储在的/etc/httpd/conf.d/目录。

1.需要在主配置文件添加

# include进来其它配置文件

IncludeOptional conf.d/*.conf

    ServerName xx.com
    ServerAdmin 邮箱
    DocumentRoot /home/www/xx


    Alias /ajax /home/www/xx/web
   
        Options FollowSymLinks
        AllowOverride All
        # Order deny,allow
        Allow from all
   



   
        AllowOverride All
   



    ErrorLog /var/log/httpd/xxl/error.log
    CustomLog "|/usr/sbin/rotatelogs -l /var/log/httpd/xx/access.%Y%m%d.log 86400" common

你可能感兴趣的:(apche)