Jump to content
СофтФорум - всё о компьютерах и не только

Apache


Recommended Posts

Давно висел настроенный на компе апач, пахал нормально и все такое. Но потом появилась ошибка(не знаю может это я напортачил, все бывает) и апач не запахал.

В логах пишется следующее(logs\error.txt):

[Mon Jun 13 11:32:18 2005] [warn] NameVirtualHost 127.0.0.2:1234 has no VirtualHosts

[Mon Jun 13 11:32:18 2005] [warn] NameVirtualHost 127.0.0.1:80 has no VirtualHosts

[Mon Jun 13 11:32:18 2005] [notice] Parent: Created child process 1232

[Mon Jun 13 11:32:18 2005] [warn] NameVirtualHost 127.0.0.2:1234 has no VirtualHosts

[Mon Jun 13 11:32:18 2005] [warn] NameVirtualHost 127.0.0.1:80 has no VirtualHosts

[Mon Jun 13 11:32:18 2005] [warn] NameVirtualHost 127.0.0.2:1234 has no VirtualHosts

[Mon Jun 13 11:32:18 2005] [warn] NameVirtualHost 127.0.0.1:80 has no VirtualHosts

[Mon Jun 13 11:32:18 2005] [notice] Child 1232: Child process is running

[Mon Jun 13 11:32:18 2005] [notice] Child 1232: Acquired the start mutex.

[Mon Jun 13 11:32:18 2005] [notice] Child 1232: Starting 250 worker threads.

[Mon Jun 13 11:32:22 2005] [notice] Parent: Received shutdown signal -- Shutting down the server.

[Mon Jun 13 11:32:22 2005] [notice] Child 1232: Exit event signaled. Child process is ending.

[Mon Jun 13 11:32:23 2005] [notice] Child 1232: Released the start mutex

[Mon Jun 13 11:32:24 2005] [notice] Child 1232: Waiting for 250 worker threads to exit.

[Mon Jun 13 11:32:24 2005] [notice] Child 1232: All worker threads have exited.

[Mon Jun 13 11:32:24 2005] [notice] Child 1232: Child process is exiting

[Mon Jun 13 11:32:24 2005] [notice] Parent: Child process exited successfully.

КАк это исправить?? :) :) :) :) :) :)

Link to comment
Share on other sites

Проверь httpd.conf! Походу у тя там объявлены виртуальные хосты

NameVirtualHost 127.0.0.2:1234NameVirtualHost 127.0.0.1:80

А описания на них

<VirtualHost 127.0.0.*:****>   ServerAdmin *************   DocumentRoot *************   ServerName *************   ErrorLog *************   CustomLog *************</VirtualHost>

нет.

Или просто переустанови апач! Благо быстро делается. :D

Link to comment
Share on other sites

Listen 127.0.0.1:80Listen 127.0.0.2:1234NameVirtualHost 127.0.0.1:80NameVirtualHost 127.0.0.2:1234## Use name-based virtual hosting.#NameVirtualHost *:80## VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for requests without a known# server name.#<VirtualHost *:80>    ServerAdmin **    DocumentRoot **    ServerName **    ErrorLog ***    CustomLog **</VirtualHost>

Что тут исправить надо?

NameVirtualHost нужно закоментировать?

Link to comment
Share on other sites

Попробовал добиться твоей ошибки, что-то похожее было. Проблема исчезла после того, как убрал из конфига задвоенные объявления хостов! Вот так всё работало.

Listen 127.0.0.1:80Listen 127.0.0.2:1234NameVirtualHost 127.0.0.1:80NameVirtualHost 127.0.0.2:1234<VirtualHost 127.0.0.1:80>   ServerAdmin blabla@mail.ru   DocumentRoot "/www/site1/"   ServerName 127.0.0.1   ErrorLog /www/site1/logs/error.log   CustomLog /www/site1/logs/access.log common</VirtualHost>

Да, и не запускался апач, если было прописано

Listen 80Listen 127.0.0.1:80

Listen 80 приходится убирать.

PS: У меня Apache v2.0.53

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...