website - Centos Apache VirtualHost setup -


apologies if problem perhaps basic issue , i'm overlooking something.

i attempting setup websites on apache virtualhost.

my virtualhost configuration included in /etc/httpd/conf/httpd.conf , following:

<virtualhost *:80>     servername test.site.com     serveralias test.site.com test.site-london.com     documentroot /var/www/site-dev     <directory /var/www/site-dev>             options -indexes followsymlinks multiviews             allowoverride             order allow,deny             allow     </directory> 

my problem when visit test.site.com or test.site-london.com, oops! google chrome not find test.site.com message. instead, websites accessible when utilize ip address in following format: 172.54.88.203/test.site.com. bit more confusingly, test.site.com see if typed ip address address bar , push enter.

i tried setting /etc/hosts file following input still not work properly:

127.0.0.1       localhost       localhost 172.54.88.203   test.site.com   test.site.com 

i appreciate this.

have uncommented namevirtualhost *:80 in httpd.conf?

if commented out virtual host not work.

please check if commented , me, near end of https.conf


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -