I am having problems accessing a new site I am trying to setup on my CentOS 7 VM. I have added a vhosts file for it, but when I access easydev.com in the browser it continues to redirect me to the old (now disabled) dev site of crmpicco.dev. Is there something wrong with my config?
Code:
[root@localhost sites-available]# apachectl -S
AH00558:
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain.
Set the 'ServerName' directive globally to suppress this message VirtualHost configuration:
*:80 is a NameVirtualHost
default server easydev.com (/etc/httpd/sites-enabled/easy.dev.conf:1)
port 80 namevhost easydev.com (/etc/httpd/sites-enabled/easy.dev.conf:1)
port 80 namevhost easydev.com (/etc/httpd/sites-enabled/easy.dev.conf:1) ServerRoot: "/etc/httpd"
Main DocumentRoot: "/etc/httpd/htdocs"
Main ErrorLog: "/var/log/httpd/error.log"
Mutex rewrite-map: using_defaults
Mutex default: dir="/var/run/httpd" mechanism=fcntl Mutex mpm-accept: using_defaults PidFile: "/var/run/httpd/httpd.pid"
Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="apache" id=48 Group: name="apache" id=48
In sites-enabled I have the following (there is now only one site enabled)
Code:
[root@localhost sites-enabled]# ll
easy.dev.conf -> /etc/httpd/sites-available/easy.dev.conf
In my Windows hosts file I have this:
Code:
10.0.0.200 easydev.com
10.0.0.200 crmpicco.dev
However, I have removed crmpicco.dev from the enabled sites and this is my easy.dev.conf vhosts file:
Quote:
[root@localhost sites-enabled]# cat easy.dev.conf
<VirtualHost *:80>
ServerName easydev.com
DocumentRoot /var/www/easydev/easy/public
<Directory /var/www/easydev/easy/public>
Options FollowSymLinks
AllowOverride all
Require all granted </Directory>
<Directory />
Options FollowSymLinks
AllowOverride None </Directory>
</VirtualHost>
|
I have tried a different browser to rule out cached redirects in the browser itself.