![]() |
请问centos系统如何绑定域名?
进入你的后台系统,我说的后台是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,前面有个#的,把它去掉 |
| All times are GMT +8. The time now is 10:54 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.