ubuntu apache添加虚拟域名
2016-09-12 08:56
399 查看
1.修改hosts文件
sudo gedit /etc/hosts //修改hosts
sudo /etc/init.d/networking restart //重启网络
2.修改apache2配置文件
sudo cp 000-default.conf xx.conf //进入/etc/apache2/sites-available/中复制一份000-default.conf,命名为xx.conf。
sudo gedit xx.conf //修改xx.conf
3.重启apache2服务
service apache2 restart
sudo gedit /etc/hosts //修改hosts
sudo /etc/init.d/networking restart //重启网络
2.修改apache2配置文件
sudo cp 000-default.conf xx.conf //进入/etc/apache2/sites-available/中复制一份000-default.conf,命名为xx.conf。
sudo gedit xx.conf //修改xx.conf
ServerName dean.laravel.com //绑定域名,与hosts文件中一致 ServerAdmin webmaster@localhost DocumentRoot /var/www/html/laravel/public //网站目录
3.重启apache2服务
service apache2 restart
相关文章推荐
- ubuntu下apache添加https支持
- 使用Apache怎么添加虚拟域名
- ubuntu中apache添加虚拟主机时出现的错误
- ubuntu apache添加虚拟目录
- 另外一个apache+tomcat转自(yinxiaoka-ubuntu forums)
- Ubuntu 网络应用服务器 Apache 配置基础
- Installl Apache2.2+SSL in Ubuntu(7.10)
- Linux(Ubuntu)下Apache + Svn的安装初步完成
- apache一些参数的解释(持续添加)
- 日记 [2007年05月08日]apache添加modules
- 今日添加ubuntu7.10配置
- 在Linux操作系统下为Apache目录添加密码
- linux apache目录添加密码
- Ubuntu系统网络应用服务器Apache配置基础
- Ubuntu Linux系统三种方法添加本地软件库[转]
- 虚拟机下添加硬盘实录@Ubuntu710@VirtualPC2007
- Ubuntu7.10添加中文支持
- ubuntu apache 源码安装错误 configure: error: C compiler cannot create executables 解决
- Ubuntu 下Trac+Subversion+Apache安装
- ubuntu7.10中的apache的一些设置