Local name collision

1

I see this series of errors, and I can not find a solution, I could read that not only do you have to create a VirtualHost , but you also have to specify it in < strong> / etc / hosts .

All this I am doing from a virtual machine with Fedora 25 .

  

[Sun Jan 22 20: 03: 51.768376 2017] [auth_digest: notice] [pid 3031] AH01757: generating secret for digest authentication ...

     

[Sun Jan 22 20: 03: 51.772153 2017] [lbmethod_heartbeat: notice] [pid 3031] AH02282: Not slotmem from mod_heartmonitor

     

[Sun Jan 22 20: 03: 51.859442 2017] [: error] [pid 3032] avahi_entry_group_add_service_strlst ("user_name") failed: Local name collision

     

[Sun Jan 22 20: 03: 51.864701 2017] [mpm_prefork: notice] [pid 3031] AH00163: Apache / 2.4.25 (Fedora) OpenSSL / 1.0.2j-fips PHP / 5.6.29 configured - normal resuming operations

     

[Sun Jan 22 20: 03: 51.864740 2017] [core: notice] [pid 3031] AH00094: Command line: '/ usr / sbin / httpd -D FOREGROUND'

    
asked by Elio Camison Costa 22.01.2017 в 20:51
source

1 answer

0

The only error you see is:

  

"[Sun Jan 22 20: 03: 51.859442 2017] [: error] [pid 3032]   avahi_entry_group_add_service_strlst ("username") failed: Local   name collision "

And surely belongs to a third-party module, not own httpd ¿mod_php perhaps?

It is not necessary that you put any entry in / etc / hosts.

But there are two things to keep in mind:

  • If you call your website by a name, the client that calls you will have to be able to resolve the name correctly, either by DNS or by Host, but this is logical, httpd gives exactly the same, you could Access directly by ip. In short, the resolution of names is your responsibility.
  • It is not necessary to generate a virtualhost, but if you define it, the first virtualhost will manage all the requests it receives, it will inherit the base configurations of the server configuration and the rest will overwrite them with what the virtualhost itself has defined.
  • It is recommended that each virtualhost have its ServerName directive with the assigned host name to which it has to answer and / or if it has several names, add them with the Serveralias directive.

Here are some examples of minimal configuration on httpd. These go without virtualhost.

Finally, and as a recommendation you should not use mod_php and in apache you should use mpm_event .

    
answered by 19.11.2017 в 23:39