![]() |
|
|||||||
| 服务器环境搭建 Windows,Linux,IIS,Apache等服务器配置、安全维护以及PHP和MYSQL运行环境讨论。 |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 153.99.39.190
|
|||
|
|||
|
进入你的后台系统,我说的后台是ssh连接到你的centos之后出现的那个黑底白字的命令行
sudo su vi /etc/httpd/conf/httpd.conf 按shift g到最后,添加 <VirtualHost *:80> ServerAdmin xxx@mail.com DocumentRoot /var/www/html/xxx ServerName xxx.com ServerAlias www.xxx.com ErrorLog logs/xxx-error_log CustomLog logs/xxx-access_log common </VirtualHost> 请将里面所有的xxx调整为你自己的目录和网站名字。 另外上面应该有个NameVirtualHost *:80,前面有个#的,把它去掉 |
![]() |
| Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|