Did you use a virtual host?
I have the same problem and solve it
1) In my case, making a virtual host is as follows: file / etc / apache 2 / sites-available / default
<VirtualHost *:80> ServerAdmin admin@email.com DocumentRoot /var/www/dort ServerName yourdomain.biz #this domain must be define tld info. ErrorLog /var/log/apache2/error_2.log <Directory /var/www/dort> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all # Uncomment this directive is you want to see apache2's # default start page (in /apache2-default) when you go to / #RedirectMatch ^/$ /apache2-default/ </Directory> </VirtualHost>
2) Installing the host in the / etc / hosts file
127.0.0.1 localhost 127.0.0.1 yourdomain.biz # The following lines are desirable for 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
3) .htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /
4) Make sure that apache restart is not showing error
Could not reliably determine the server fully qualified domain name, using 127.0.0.1 for ServerName
5) Go to the overview and run this URL http://yourdomain.biz
viyancs
source share