LINUX.ORG.RU
ФорумAdmin

Виртуальные хосты не находятся


0

0

Вроде все правильно отконфигурил, в httpd.conf, виртуальные хосты, два штуки, тока ни фига не находит их никто, в чем причина. Хосты на один IPшник. Кто знает, кто видел, где искать змею, может есть где почитать что?

anonymous

так ты в днс их прописал !!!!

anonymous
()

Для ае: Антон, помоги, вот конфиг!

# httpd.conf -- Apache HTTP server configuration file ServerRoot "/usr/local/apache" #LockFile /usr/local/apache/logs/httpd.lock PidFile /usr/local/apache/logs/httpd.pid #ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard #ResourceConfig conf/srm.conf #AccessConfig conf/access.conf Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 30 #Listen 3000 #Listen 12.34.56.78:80 #BindAddress * ### Section 2: 'Main' server configuration Port 80 User nobody Group nobody ServerAdmin root@dom ServerName dom #DocumentRoot "/usr/local/apache/htdocs" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "/usr/local/apache/htdocs"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> UserDir public_html DirectoryIndex index.html AccessFileName .htaccess <Files .htaccess> Order allow,deny Deny from all </Files> UseCanonicalName On TypesConfig /usr/local/apache/conf/mime.types DefaultType text/plain <IfModule mod_mime_magic.c> MIMEMagicFile /usr/local/apache/conf/magic </IfModule> HostnameLookups Off # ErrorLog /usr/local/apache/logs/error_log # LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /usr/local/apache/logs/access_log common ServerSignature On Alias /icons/ "/usr/local/apache/icons/" <Directory "/usr/local/apache/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/" <Directory "/usr/local/apache/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> IndexOptions FancyIndexing AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif #AddDescription "GZIP compressed document" .gz #AddDescription "tar archive" .tar #AddDescription "GZIP compressed tar archive" .tgz ReadmeName README HeaderName HEADER IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,tAddEncoding x-compress Z AddEncoding x-gzip gz AddLanguage en .en AddLanguage fr .fr AddLanguage de .de AddLanguage da .da AddLanguage el .el AddLanguage it .it AddLanguage ru .ru LanguagePriority en fr de BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 <NameVirtualHost 192.168.1.1> <VirtualHost 192.168.1.1> ServerName www.dom ServerAdmin webmaster@dom DocumentRoot /usr/local/apache/htdocs ErrorLog /usr/local/apache/logs/error_log CustomLog /usr/local/apache/logs/dom/access_log common <Directory> Options FollowSymLinks AllowOverride None </Directory> ScoreBoardFile usr/local/apache/logs/httpd.scoreboard </VirtualHost> <VirtualHost 192.168.1.1> ServerName www.les.dom ServerAdmin webmaster@dom DocumentRoot /usr/local/apache/vhosts/les ErrorLog /usr/local/apache/logs/les/error_log CustomLog /usr/local/apache/logs/ib/access_log common <Directory > Options FollowSymLinks AllowOverride None </Directory> ScoreBoardFile usr/local/apache/logs/httpd.scoreboard </VirtualHost> ### Section 4: Russian Apache (mod_charset) tuning <IfModule mod_charset.c> CharsetDecl ISO-8859-5 ru CharsetDecl ibm866 ru CharsetDecl windows-1251 ru CharsetDecl koi8-r ru CharsetRecodeTable koi8-r ISO-8859-5 /usr/local/apache/conf/tables/russian/koi-iso.tab CharsetRecodeTable koi8-r ibm866 /usr/local/apache/conf/tables/russian/koi-alt.tab CharsetRecodeTable koi8-r windows-1251 /usr/local/apache/conf/tables/russian/koi-win.tab CharsetRecodeTable windows-1251 ISO-8859-5 /usr/local/apache/conf/tables/russian/win-iso.tab CharsetRecodeTable windows-1251 ibm866 /usr/local/apache/conf/tables/russian/win-alt.tab #### DO NOT FORGET TO ADD CharsetRecodeTable directives if your #### html files are stored on disk in different (neither koi8-r nor #### windows-1251) encodings. Server MUST know all possible #### Client<->file translations CharsetAlias ISO-8859-5 iso_8859-5:1988 iso-ir-144 iso_8859-5 cyrillic CharsetAlias ISO-8859-5 iso8859-5 iso-8859.5 iso8859.5 iso CharsetAlias ibm866 csibm866 866 cp866 x-cp866 x-ibm866 cp-866 alt CharsetAlias windows-1251 win x-cp1251 cp1251 cp-1251 CharsetAlias koi8-r koi-8-r koi8 koi-8 koi CharsetPriority koi8-r windows-1251 ISO-8859-5 ibm866 # x-mac-cyrillic CharsetDefault koi8-r CharsetSourceEnc koi8-r CharsetAgent windows-1251 AIR_Mosaic IWENG/1 MSIE WinMosaic (Windows (WinNT; CharsetAgent windows-1251 (Win16; (Win95; (Win98; (16-bit) Opera/3.0 CharsetAgent koi8-r Arena Ariadna OmniWeb Sextant PRD (X11 Lynx/ CharsetAgent ibm866 DosLynx Lynx2/OS/2 CharsetBadAgent arena Lynx/2.0 Lynx/2.1 Lynx/2.2 Lynx/2.3 Lynx/2.4 "MSIE 2.0;" Lynx2/OS/2 CharsetRecodeFilenames Off CharsetBrokenAccept "Mozilla/4." "iso-8859-1,*,utf-8" #</IfModule>

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.