CentOS 7 redirecting me to old disabled dev site when removed from sites-enabled


 
Thread Tools Search this Thread
Top Forums Web Development CentOS 7 redirecting me to old disabled dev site when removed from sites-enabled
# 1  
Old 03-04-2015
CentOS 7 redirecting me to old disabled dev site when removed from sites-enabled

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:

Code:
[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.
# 2  
Old 03-04-2015
You should fix this error first:
Code:
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain.

# 3  
Old 03-04-2015
See this output:

Code:
root@www:/website/logs/apache2# nslookup easydev.com
Server:	       8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
easydev.com	canonical name = pres.serverhome.com.
pres.serverhome.com	canonical name = thie5ku9.dsgeneration.com.
Name:	thie5ku9.dsgeneration.com
Address: 141.8.230.20

root@www:/website/logs/apache2# nslookup crmpicco.dev
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	crmpicco.dev
Address: 127.0.53.53

# 4  
Old 03-04-2015
Quote:
Originally Posted by Neo
You should fix this error first:
Code:
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain.

I have resolved this error by following the advice from this answer - linux - httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName - Stack Overflow

Quote:
Originally Posted by Neo
See this output:

Code:
root@www:/website/logs/apache2# nslookup easydev.com
Server:	       8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
easydev.com	canonical name = pres.serverhome.com.
pres.serverhome.com	canonical name = thie5ku9.dsgeneration.com.
Name:	thie5ku9.dsgeneration.com
Address: 141.8.230.20

root@www:/website/logs/apache2# nslookup crmpicco.dev
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	crmpicco.dev
Address: 127.0.53.53

I have easydev.com setup in my hosts file on Windows to point to my VM, so it wouldn't get to the outside world:

10.0.0.200 easydev.com

What would you recommend doing?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

some sites are loading very slow on my centos proxy server

Hello everyone, I've installed squid proxy server in Linux centos machine for users.actually problem is when users browse some websites eg : WordPress.org, gravatar.com it loads very slow compare to others sites .my line is 4mbps and only 6 users for it.I've bypassed squid for myself via... (3 Replies)
Discussion started by: afybiz
3 Replies

2. Shell Programming and Scripting

Redirecting standard out to /dev/null goes to file "/dev/null" instead

I apologize if this question has been answered else where or is too elementary. I ran across a KSH script (long unimportant story) that does this: if ; then CAS_SRC_LOG="/var/log/cas_src.log 2>&1" else CAS_SRC_LOG="/dev/null 2>&1" fithen does this: /usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies

3. Web Development

Apache - redirecting authenticated users to other sites

Hi everyone. Im really new here, so please have patience with me if i act out of order in any way. I do have some unix experience, but i would not call it extensive. The problem i am about to describe probably have a easy solution, but i have been unable to find it while speaking to Mr.Google... (4 Replies)
Discussion started by: antiw2k3
4 Replies

4. UNIX for Dummies Questions & Answers

know a particular user is disabled or enabled

Hi all, i had 500 users how can i know whether user is disabled or enabled Thanks, kalyan (8 Replies)
Discussion started by: kalyan212
8 Replies

5. Red Hat

how to test whether is user is enabled on disabled in Radius

Hi i am having two linux machines M1 M2 ,where M1 is the main machine and the connector is M2 Radius services are installed in M2. i pulled M2 users which resides on /user/local/raddb/users to M1 .so that any changes made to user in M1 will be reflected in M2. now i am disabling a user from M1... (1 Reply)
Discussion started by: kalyankalyan
1 Replies

6. UNIX for Dummies Questions & Answers

how to test whether is user is enabled on disabled in Radius

Hi i am having two linux machines M1 M2 ,where M1 is the main machine and the connector is M2 Radius services are installed in M2. i pulled M2 users which resides on /user/local/raddb/users to M1 .so that any changes made to user in M1 will be reflected in M2. now i am disabling a user from M1... (0 Replies)
Discussion started by: kalyankalyan
0 Replies

7. UNIX for Dummies Questions & Answers

Redirecting site using .htaccess with masking

I am trying to redirect my site to another with masking using .htaccess. I have the redirect working, but it does not mask. Here is what I have in my .htaccess: RewriteEngine On rewritecond %{http_host} ^http://www.securepaynet.net/default.aspx?ci=1767&prog_id=globalnerds RewriteRule /... (0 Replies)
Discussion started by: globalnerds
0 Replies

8. Post Here to Contact Site Administrators and Moderators

Site features Disabled

I have a PC I often use to visit this site and for some reason the buttons (such as code tags) do not work for me using this machine.I am using IE and I have been through the preferences but can find no options that seem to be responsible for disabling these buttons.I have tried manually inpputing... (4 Replies)
Discussion started by: steadyonabix
4 Replies

9. UNIX for Dummies Questions & Answers

Redirecting several outputs to /dev/stdout

I have an executable that, depending on its input, outputs to either one file or several. It usually prints nothing on screen. The usual way to call this program is to specify an input and output filenames, like this: ./executable.exe -i inputfile -o outputfileIt will then try to use the output... (1 Reply)
Discussion started by: aplaydoc
1 Replies

10. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies
Login or Register to Ask a Question