前提是子域名可以正常解析ip地址。
打开子域名所解析服务器的apache2配置文件,加入以下内容:
<VirtualHost *:80> ServerAdmin 1324928751@qq.com DocumentRoot /var/www/night ServerName night.wp.cpxiang.tech ServerAlias night.wp.cpxiang.tech </VirtualHost>
重启apache2。
注意 - 你可以用以下 HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
昵称
邮箱
网址
This site uses Akismet to reduce spam. Learn how your comment data is processed.
0 条评论。