博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux apache服务器配置虚拟主机
阅读量:7036 次
发布时间:2019-06-28

本文共 523 字,大约阅读时间需要 1 分钟。

楼主用的是阿里云

配置虚拟主机需要在 /alidata/vhosts/default.conf文件中加以下内容

1
2
3
4
5
6
7
8
9
10
11
12
13
<
VirtualHost 
*:80>
    
DocumentRoot /alidata/www/default/baby
    
ServerName www.nixiaofeng.xyz
    
ServerAlias www.nixiaofeng.xyz
    
<
Directory 
"/alidata/www/default/baby">
        
Options Indexes FollowSymLinks
        
AllowOverride all
        
Order allow,deny
        
Allow from all
    
</
Directory
>
    
ErrorLog "/alidata/log/httpd/phpwind-error.log"
    
CustomLog "/alidata/log/httpd/phpwind.log" common
</
VirtualHost
>
本文转自  陈小龙哈   51CTO博客,原文链接:http://blog.51cto.com/chenxiaolong/1710419

转载地址:http://tcial.baihongyu.com/

你可能感兴趣的文章
postgresql 分区与优化
查看>>
数码相框项目之LCD模块
查看>>
Android通讯录添加号码
查看>>
Codeoforces 558 B. Duff in Love 【 Codeforces Round #326 (Div. 2)】
查看>>
建设优质手机网站必读
查看>>
搭建 nuget 私服及注意事项
查看>>
CoordinatorLayout和Behavior(一)
查看>>
[译] 用 Scikit-Learn 实现 SVM 和 Kernel SVM
查看>>
Support Async Tests with JavaScripts Promises through async await Our testing
查看>>
窥探SDWebImage
查看>>
Android6 0权限机制(三):6 0以前国产手机权限处理
查看>>
Linux 内核 101:NUMA架构
查看>>
推荐一个采用方便程序员在线动画学习常用算法的良心网站
查看>>
SQLServer之修改触发器
查看>>
如何使用SpringMvc处理Rest异常
查看>>
Golang学习笔记(二):五大声明语句
查看>>
springboot mybatis 项目框架源码 shiro 集成代码生成器 ehcache缓存
查看>>
【我读《Big Data》】引言部分--大数据,一场生活,工作,思维的变革
查看>>
Python 3 学习笔记之——基础语法
查看>>
Java反射 私有字段和方法
查看>>