|
|
|
| Добрый день!
Необходимо создать вирутальный хост в локальной сети, сайт мой виден как
http://virus.home.sbor.net
а мне надо второй http://site.sbor.net.ru что нужно в апаче писать?
Сервер
Apache/2.2.3 (Win32)
Версия PHP
5.1.4
mySQL
4.0.17-nt | |
|
|
|
|
|
|
|
для: Las vegas
(28.03.2007 в 12:52)
| | <VirtualHost www.search.hot:8080>
DocumentRoot "C:/www"
ServerName "www.search.hot"
ServerAlias "myonesite.ru" "www.search.hot"
ServerAlias "mytwosite.ru" "www.search.hot"
ServerAlias "www.search.hot" "www.search.hot"
</VirtualHost>
пробовал такое вставить, ошибка следущаю была : фото с ошибкой прикрепил | |
|
|
|
|
|
|
|
для: Las vegas
(28.03.2007 в 13:30)
| | В контейнере <VirtualHost www.search.hot:8080> не используйте доменные имена. Всегда пишите IP-адрес. Пример:
<VirtualHost 192.168.200.200:8080>
|
PS:
А почему у Вас ServerAlias какие странные. Три использованные Вами директивы можно переписать так:
ServerAlias myonesite.ru mytwosite.ru
|
| |
|
|
|
|
|
|
|
для: glsv (Дизайнер)
(30.03.2007 в 05:56)
| | Нужна помощь. Файл сайта находятся в папке Z:/home/www.lc.ru/htdocs вместо /www/
Делаю настройки:
<VirtualHost *:*>
DocumentRoot "Z:/home/www.lc.ru/htdocs"
ServerName "www.lc.ru"
ServerAlias "lc.ru" "www.lc.ru"
ScriptAlias /cgi/ "z:/home/www.lc.ru/cgi/"
ScriptAlias /cgi-bin/ "z:/home/www.lc.ru/cgi-bin/"
ErrorLog "z:/home/www.lc.ru/error.log"
</VirtualHost>
или
<VirtualHost *:*>
DocumentRoot "Z:/home/www.lc.ru/htdocs"
ServerName "www.lc.ru"
ServerAlias "lc.ru" "www.lc.ru"
ScriptAlias /cgi/ "/home/www.lc.ru/cgi/"
ScriptAlias /cgi-bin/ "/home/www.lc.ru/cgi-bin/"
ErrorLog "/home/www.lc.ru/error.log"
</VirtualHost>
Пишет следеующее:
Вы ошиблись при наборе URL в браузере. Вероятнее всего, сервер пытается найти файл
z:/home/www.lc.ru/www/, которого не существует.
Как сделать, чтобы обращение было к папке .../htdocs/ | |
|
|
|
|
|
|
|
для: snippy-9
(03.04.2007 в 11:00)
| | Перезапускаю apache_2.2.4-win32-x86-no_ssl.msi :
[Wed Aug 22 16:08:04 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Wed Aug 22 16:08:05 2007] [warn] VirtualHost 127.0.0.1:0 overlaps with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Aug 22 16:08:05 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Wed Aug 22 16:08:05 2007] [notice] Server built: Jan 9 2007 23:17:20
[Wed Aug 22 16:08:05 2007] [notice] Parent: Created child process 228
[Wed Aug 22 16:08:05 2007] [error] (OS 11001)Этот хост неизвестен. : Could not resolve host name *.* -- ignoring!
[Wed Aug 22 16:08:05 2007] [warn] VirtualHost 127.0.0.1:0 overlaps with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Aug 22 16:08:05 2007] [warn] VirtualHost 127.0.0.1:0 overlaps with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Aug 22 16:08:05 2007] [notice] Child 228: Child process is running
[Wed Aug 22 16:08:05 2007] [notice] Child 228: Acquired the start mutex.
[Wed Aug 22 16:08:05 2007] [notice] Child 228: Starting 250 worker threads.
[Wed Aug 22 16:08:05 2007] [notice] Child 228: Starting thread to listen on port 81.
[Wed Aug 22 16:08:05 2007] [notice] Child 228: Starting thread to listen on port 81.
[Wed Aug 22 16:08:05 2007] [notice] Child 228: Starting thread to listen on port 80.
[Wed Aug 22 16:08:06 2007] [notice] Child 2532: Waiting for 250 worker threads to exit.
[Wed Aug 22 16:08:06 2007] [notice] Child 2532: All worker threads have exited.
[Wed Aug 22 16:08:06 2007] [notice] Child 2532: Child process is exiting
| Настройку делал согласно пунктам 3-29 на
http://forum.dklab.ru/php/book/UstanovkaApache2058Php514IMysql5022-Podrobno.html .
Только файл vhosts.conf такой:
NameVirtualHost *.*
Listen 127.0.0.1:81
Listen 127.0.0.2:81
<VirtualHost 127.0.0.1>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot "C:/WebServers/home/localhost/www"
ScriptAlias /cgi/ "C:/WebServers/home/localhost/cgi"
ErrorLog C:/WebServers/home/localhost/error.log
CustomLog C:/WebServers/home/localhost/access.log common
</VirtualHost>
#ipbased
<VirtualHost ipbased>
ServerAdmin webmaster@ipbased
ServerName ipbased
DocumentRoot "C:/WebServers/home/localhost/ipbased/www"
ScriptAlias /cgi/ "C:/WebServers/home/localhost/ipbased/cgi/"
ErrorLog C:/WebServers/home/localhost/ipbased/error.log
CustomLog C:/WebServers/home/localhost/ipbased/access.log common
</VirtualHost>
#nmbased
<VirtualHost 127.0.0.1>
ServerAdmin webmaster@nmbased
ServerName nmbased
DocumentRoot "C:/WebServers/home/localhost/nmbased/www"
ScriptAlias /cgi/ "C:/WebServers/home/localhost/nmbased/cgi/"
ErrorLog C:/WebServers/home/localhost/nmbased/error.log
CustomLog C:/WebServers/home/localhost/nmbased/access.log common
</VirtualHost>
| При вводе в адресную строку браузера слово nmbased я получаю index.html лежащий в C:/WebServers/home/localhost/www,
но нужно тот, что в C:/WebServers/home/localhost/nmbased/www ! Как быть? | |
|
|
|