Apache vhost

<VirtualHost php.com:80>
    # ServerAdmin [email protected]
    DocumentRoot "E:/work/008_Php/002_phpDemo/"
    ServerName php.com
    ServerAlias www.dummy-host.example.com
    <Directory "E:/work/008_Php/002_phpDemo/">
        Options FollowSymLinks IncludesNOEXEC Indexes
        DirectoryIndex index.html index.htm index.php
        AllowOverride all
        Order Deny,Allow
        Allow from all
        Require all granted
    </Directory>
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

猜你喜欢

转载自www.cnblogs.com/gaochaoweino/p/12297132.html