Apache serving content after the content is removed?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apache serving content after the content is removed?
Okay, I'm a bit confused.. I'm running Apache/2.0.49, and have configured a VirtualHost for webmail.. ie: webmail.mydomain.com I installed Squirrelmail, and configured it, got it running, and then removed it, even removed the hosting directory and the VirtualHost section out of the config file. Still though, it hosts the content, lets me login, send and receive e-mail, etc... I tried restarting the apache server, and rebooted the machine all together to see if it was in memory or something, dunno...
I have searched my entire file system for specific files that are a part of Squirrelmail... and they don't even show up on my system.
I know I do not have two versions of apache installed on the system. Yes it is version 2 though.
I have cleared the cache on the client side and everything, what I don't get... I can actually login, receive e-mail, send e-mail and everything else.. so its like the script, sub-domain, and everything associated with the webmail virtual host still exists, and is talking with my linux mail server.
I am completely lost on why this would happen unless apache has a cache of its own, which I've read about and have only been able to determine that apache running as a proxy is the only way it will have a cache.
Check your access logs to see if it is actually serving files. Once you see the names of the fiels that are being served search your system from that file name:
find / -name "file.ext"
Great idea, though it did not work. I viewed the default access and error logs, along with the virtual host specific logs that were used for it. The last access it shows is from the 26th for anything that was related to squirrelmail. I am completely baffled by this.
One thing that even makes it more interesting in which I just found out by fiddling, is that when I stop the apache web server, I cannot access anything except the webmail domain, which is good, with the exception of being able to access that domain.
If I do a port scan on the host, port 80 isn't open if the apache service is off, but yet it still serves the webmail virtual host.
Just to add another note, to be 100% sure that it wasn't anything to do with my local network, I am now at work and attempted to login to this deleted webmail virtual host, and it does work. So it has nothing to do with the cache on a client or what not.
My next guess is that perhaps it is beeing hosted from a different server. From the cli try a ping to each virtual domain and see if the IPs are the same - ie:
ping webmail.domain.com
ping www.domain.com
No I am not going through a proxy, but the address webmail.bushylegg.com does not resolve to the correct IP address. What are the odds that the registrar that I use also uses squirrelmail. Each time I was loading up my webmail domain, it was actually theres. The strange thing is that I logged into my servers though. I think I have an idea on why, but its still funny when you look at it. I am getting with the registrar now to figure out why a subdomain of my domain is resolving to their address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.