Thread: Ghost host && virtualhost not working properly
i setup lamp on ubuntu 10.0.4 desktop using tasksel pma , working on configuring virtual hosts more browse sites development , or testing on localhost.i have 2 problems. every time restart apache or work on virtualhost error:i have virtualhost default , wordpress. how error caused , how can resolve it?code:$ sudo /etc/init.d/apache2 restart sudo: unable resolve host ubuntu * restarting web server apache2 apache2: apr_sockaddr_info_get() failed ubuntu apache2: not reliably determine server's qualified domain name, using 127.0.0.1 servername ... waiting apache2: apr_sockaddr_info_get() failed ubuntu apache2: not reliably determine server's qualified domain name, using 127.0.0.1 servername
second issue, when go wordpress-dev /etc/hosts file neatly directs me virtualhost wordpress residing in /var/www/wordpress, when click see comment url localhost in it:. wordpress permalinks issue or virtualhost missconfiguration?code:http://localhost/wordpress/?p=1#comments
here virtualhost wordpressand here hosts file:code:<virtualhost 127.0.1.1:80> serveradmin webmaster@localhost documentroot /var/www/wordpress/ <directory /> options followsymlinks allowoverride none </directory> <directory /var/www/wordpress/> options indexes followsymlinks multiviews allowoverride none order allow,deny allow </directory> scriptalias /cgi-bin/ /usr/lib/cgi-bin/ <directory "/usr/lib/cgi-bin"> allowoverride none options +execcgi -multiviews +symlinksifownermatch order allow,deny allow </directory> errorlog /var/log/apache2/error.log # possible values include: debug, info, notice, warn, error, crit, # alert, emerg. loglevel warn customlog /var/log/apache2/access.log combined alias /doc/ "/usr/share/doc/" <directory "/usr/share/doc/"> options indexes multiviews followsymlinks allowoverride none order deny,allow deny allow 127.0.0.0/255.0.0.0 ::1/128 </directory> </virtualhost>code:127.0.0.1 localhost 127.0.1.1 wordpress-dev # followinag lines desirable ipv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
well, unixmen solved errors addingcode:servername localhost. after restarting apachecode:/etc/apache2/apache2.confwhy this:code:$sudo /etc/init.d/apache2 restart sudo: unable resolve host ubuntu * restarting web server apache2 ... waitingafter restarting , why wordpress-dev still shows localhost in urls not know yet.code:sudo: unable resolve host ubuntu
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [SOLVED] Ghost host && virtualhost not working properly
Ubuntu
Comments
Post a Comment