I have my site hosted at http://52.68.178.242/
I have registered domain gabifrc.org from aws I'm using httpd24 on crentos
I have set following configurations in /etc/httpd/conf/httpd.conf file. It seems to change the DocumentRoot but doamin is not in use. How can i point it to the doamin.
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot /var/www/html/gabifrc
ServerName www.gabifrc.org
ServerAlias gabifrc.org
ErrorLog /var/www/html/gabifrc/error.log
</VirtualHost>
问题出在aws路由s5上,我在其中分配了带有ip的名称服务器,并且像魅力一样工作。
In /etc/httpd/conf/httpd.conf uncomment NameVirtualHost *:80
Restart httpd
In DNS create A record with EIP of the Instance.
This should solve your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.