have got a problem with restart httpd service on my server. When I tryservice httpd restart, it will give me an error: Code: root@server1 [/usr/src]# service httpd restartAH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/httpd.conf:455 I don't really understand what I get an error when i try to restart the httpd service. Can you please tell me what I have to do to correct the problem? P.S I need to set the setting correctly in the httpd.conf as I need the rewrite rules to work correctly as it did not work when I try to useRewriteCond %{HTTP_HOST} ^googleas it wont do anything to mask the domain name to my domain name. Answser: The error instructs you to look at line 455 in/usr/local/apache/conf/httpd.conf. That line likely starts withNameVirtualHost, which is no longer necessary. But it is a warning, not an error. Also take a look in the logs (your configuration appears not standard; check in/var/logfor the httpd logs). AH00548: NameVirtualHost has no effect and will be removed in the next release AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/httpd.conf:571 I am using Centos6 Server version: Apache/2.4.16 (Unix) Server built: Aug 4 2015 01:21:07 file contact of /usr/local/apache/conf/httpd.conf 570 NameVirtualHost 104.238.119.91 :80 571 NameVirtualHost 104.238.119.91:80 Answer: I encountered the same problem setting up a new virtual server with CentOS 7 and httpd 2.4.6 (installed via yum). My httpd logged in the correct file, so I was sure the VirtualHost directive was OK, but still got a 403 error. Actually, the directive has been dropped after httpd 2.3.11. Now these lines should suffice: <VirtualHost *:80> ServerName Your-server-name here DocumentRoot /your/path/ </VirtualHost> If for some reason you are still seeing the test page, keep on reading. When I added these lines to the VirtualHost everything worked as expected: <Directory /your/path> Require all granted </Directory> NameVirtualHost has no effect Code: user@admin:~$ sudo service apache2 restartsudo: unable to resolve host admin* Restarting web server apache2 AH00548: NameVirtualHost has no effect and will be removed in the next release/etc/apache2/ports.conf:8 Answer: From the apache documentation: Prior to 2.3.11, NameVirtualHost was required to instruct the server that a particular IP address and port combination was usable as a name-based virtual host. In 2.3.11 and later, any time an IP address and port combination is used in multiple virtual hosts, name-based virtual hosting is automatically enabled for that address. This directive currently has no effect. The solution to your problem is to remove the NameVirtualHost directive. AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:10 Bug Description NameVirtualHost is deprecated, and should be removed. root@node-1:~# service apache2 start * Starting web server apache2 AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:10 * root@node-1:~# VERSION: feature_groups: - mirantis production: "docker" release: "7.0" openstack_version: "2015.1.0-7.0" api: "1.0" build_number: "974" build_id: "2015-08-13_13-06-36" nailgun_sha: "7903e1fc565d30dc62ee7f101acb2e9c925be566" python-fuelclient_sha: "55f604ac0e1d9fb227312bdc43e7f87aafa510bc" fuel-agent_sha: "57145b1d8804389304cd04322ba0fb3dc9d30327" fuel-nailgun-agent_sha: "e01693992d7a0304d926b922b43f3b747c35964c" astute_sha: "371bfd25f62fd4db39b2b1ae1d93ba76553e11c7" fuel-library_sha: "05e8e57d2fccc2e383453e9102d95ac1f63fb9ba" fuel-ostf_sha: "58220583f10fa47f12291488ef77854809c68310" fuelmain_sha: "aa89341dcebf127f3239b0a67550fdb3925d552c" Searches related to namevirtualhost has no effect and will be removed in the next release apache 2.4 namevirtualhost has no effect apache 2.4 virtualhost namevirtualhost *:80 ah00558: httpd: could not reliably determine the server's fully qualified domain name address already in use: ah00072: make_sock: could not bind to address [::]:443 apache servername directive set the 'servername' directive globally to suppress this message