天天看點

phpstudy 配置站點域名phpstudy 配置站點域名

phpstudy 配置站點域名

使用

httpd-vhosts.conf

進行配置虛拟域名

添加以下代碼
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "項目目錄/public"
    ServerName 網址名
    ServerAlias 别名
    ErrorLog "logs/網址名-error.log"
    CustomLog "logs/網址名-access.log" common
</VirtualHost>
           
這樣就要在将

httpd.conf

中進行兩項設定
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
           
#Include conf/vhosts.conf
           
後續再說…