apache - different name-based hosts on the same ip -
i need access wordpress install without domain, created ip address have name-based hosts on same ip, when restart httpd service return several warnings , domains point first.
starting httpd: [thu aug 15 19:22:58 2013] [warn] virtualhost 176.111.104.95:80 overlaps virtualhost 176.111.104.95:80, first has precedence, perhaps need namevirtualhost directive [thu aug 15 19:22:58 2013] [warn] virtualhost 176.111.104.95:80 overlaps virtualhost 176.111.104.95:80, first has precedence, perhaps need namevirtualhost directive <virtualhost 176.111.104.95:80> serveradmin admin@carviz.pt documentroot /var/www/html/carviz.pt/public_html servername carviz.pt serveralias www.carviz.pt errorlog logs/carviz.pt-error_log customlog logs/carviz.pt-access_log common </virtualhost> <virtualhost 176.111.104.95:80> serveradmin admin@instaclasse.com documentroot /var/www/html/instaclasse.com/public_html servername instaclasse.com serveralias www.instaclasse.com errorlog logs/instaclasse.com-error_log customlog logs/instaclasse.com-access_log common </virtualhost> <virtualhost 176.111.104.95:80> serveradmin ftpaul@gmail.com documentroot /var/www/html/skala.pt/public_html servername skala.pt serveralias www.skala.pt errorlog logs/skala-error_log customlog logs/skala-access_log common </virtualhost>
i following example: mixed name-based , ip-based vhosts on http://httpd.apache.org/docs/current/vhosts/examples.html
you can @ ports.conf
in /etc/apache2
you can add lines there:
namevirtualhost 176.111.104.95:80 listen 176.111.104.95:80
or better yet (if areonly using 1 ip)
you can change current virtualhost from
<virtualhost 176.111.104.95:80>
to
Comments
Post a Comment