最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

localhost - Unusual Apache2 Error Causing Wordpress Redirect Error?

programmeradmin2浏览0评论

I have the following error in my apache2 error log(Ubuntu 18.04, local LAMP dev environment), that I believe is causing a The page isn’t redirecting properly error:

[:error] [pid ] avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name

I have been searching online for a few hours, but have not found anyway to resolve this error.

The contents of my /etc/hosts file is as follows:

127.0.0.1   localhost 
127.0.0.1   localhost.example   *.localhost.example
127.0.0.1   someothername   www.someothername
127.0.0.1   blog.localhost.example
127.0.0.1   seminar.localhost.example
    

#The line below is for shared folder access. DP Edit.
127.0.0.1   machinename.local
 

To ensure that the error is NOT being caused by wordpress, I have tried the following:

  1. disabled all plugins = redirecting error still present NOTE: no new htaccess was generated by wp
  2. used db query to update siteurl value to match localhost UPDATE wp_options SET option_value='' WHERE option_name='siteurl' = redirecting error still present
  3. updated wp-config to reflect define('WP_HOME',''); define('WP_SITEURL','');
  4. I also tried creating a simplified htaccess file according to these instructions = redirection error still present

Any ideas?

发布评论

评论列表(0)

  1. 暂无评论