Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-19-2005, 08:23 PM
|
#1
|
Senior Member
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,350
Rep:
|
apache acting weird
I think I may have posted this before but the solution only worked termporary.
When I shut down the server, apache tries to resolve all the virtual hosts, for some dumb reason, but since the DNS is turned off before apache, it can't, so it just sits there on each host waiting about 15 minutes or whatever the rediculusly long default tcp time out is. So when you've got a UPS giving you 5 minutes toshut down and the server starts waiting for no reason, it's a big problem. The solution was to make it so DNS stops after apache, but even then, it probably resets itself back to how it was, so it's not a permanent fix. It still does it. Is there a way to stop apachy from doing this? There's no reason why it needs to resolve any hosts, it's shutting down anyway!
Same with when it starts, it does the same, I just want it to start, and I don't care if it can't resove them or not. Once everything is done loading, everything works, and that's what counts. Remote reboots don't seem to cause an issue as I'll sometimes reboot the server and it takes only a few minutes for it to come back. But being able to shut down fast is crucial for my setup.
|
|
|
08-19-2005, 08:43 PM
|
#2
|
Member
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789
Rep:
|
Have you tried setting:
HostnameLookups off
in your apache config file? What version are you using? Everything 1.3 and newer should default to off.
slight
|
|
|
08-19-2005, 08:47 PM
|
#3
|
Senior Member
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,350
Original Poster
Rep:
|
Hmm I'll have to try that. Using 1.3 I think.
Edit: It's actually apache2... hmm never knew I got that to work in debian with php, I thought I tried and it did not work. I think it's my evil apt-get update that did that, it also gave me the unstable version of debian, and stuff has been going bad since then.
That line did not do anything, is there a specific place I have to put it? I just sticked it near the start of the file. But the debian apache2 package is messed up, it's all weird and stuff. httpd.conf is just redirecting to apache2.conf, and the virtual hosts are actually all seperate files.
Last edited by Red Squirrel; 08-19-2005 at 09:23 PM.
|
|
|
All times are GMT -5. The time now is 03:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|