标签:基于 apach 去掉 highlight html ast ide www rom
说明:
配置apache虚拟主机步骤
<VirtualHost *:80> --------------这里用于配置基于IP地址或者基于端口的虚拟主机(配置多个端口或配置多个IP地址分别对应配置基于端口/IP地址的虚拟主机) ServerAdmin webmaster@dummy-host.example.com ---------配置管理员邮箱 DocumentRoot "/usr/local/apache/docs/dummy-host.example.com" ---------配置站点目录所在路径(如/var/www/html) ServerName dummy-host.example.com ---------配置虚拟主机的域名(如www.test.com) ServerAlias www.dummy-host.example.com ---------配置虚拟主机别名(如,test.com用于301跳转) ErrorLog "logs/dummy-host.example.com-error_log" ---------配置记录错误日志文件存放路径 CustomLog "logs/dummy-host.example.com-access_log" common ---------配置记录网站访问日志文件存放路径 </VirtualHost>
Include conf/extra/httpd-mpm.conf Include conf/extra/httpd-vhosts.conf Include conf/extra/httpd-default.conf <Directory "/PATH"> --------------这里要添加改成我们配置的存放虚拟主机目录站点的路径(如 /var/www/html) Options FollowSymLinks --------------这里优化,没有主页也不显示根目录 AllowOverride None --------------以下3项是安全方面的优化 Order allow,deny Allow from all </Directory>
标签:基于 apach 去掉 highlight html ast ide www rom
原文地址:https://www.cnblogs.com/blog-tim/p/10573893.html