Sponsored Content
Top Forums Web Development CentOS 7 redirecting me to old disabled dev site when removed from sites-enabled Post 302937219 by crmpicco on Wednesday 4th of March 2015 08:42:53 AM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
A2ENSITE(8)						      System Manager's Manual						       A2ENSITE(8)

NAME
a2ensite, a2dissite - enable or disable an apache2 site / virtual host SYNOPSIS
a2ensite [site] a2dissite [site] DESCRIPTION
This manual page documents briefly the a2ensite and a2dissite commands. a2ensite is a script that enables the specified site (which contains a <VirtualHost> block) within the apache2 configuration. It does this by creating symlinks within /etc/apache2/sites-enabled. Likewise, a2dissite disables a site by removing those symlinks. It is not an error to enable a site which is already enabled, or to disable one which is already disabled. The default site is handled specially: The resulting symlink will be called 000-default in order to be loaded first. EXAMPLES
a2dissite default Disables the default site. FILES
/etc/apache2/sites-available Directory with files giving information on available sites. /etc/apache2/sites-enabled Directory with links to the files in sites-available for enabled sites. SEE ALSO
apache2ctl(8). AUTHOR
This manual page was written by Stefan Fritsch <sf@debian.org> (based on the a2enmod manual page by Daniel Stone <daniel@sfarc.net>) for the Debian GNU/Linux distribution. 8 June 2007 A2ENSITE(8)
All times are GMT -4. The time now is 06:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy