Virtualhost ... ciagle problem
pectore - 03-08-2008 13:12
Virtualhost ... ciagle problem
ja mam takie pytanie....
root@xxxxx:~# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using ksxxxx.kimsufi.com for ServerName
waiting apache2: Could not reliably determine the server's fully qualified domain name, using ksxxxx.kimsufi.com for ServerName
mam takie pytanie...poniewaz mam chyba problem z virtualhost
nie wiem czy trzeba to ustawiac ale..:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
pozniej w serwer alias mam
www.mojadomena.pl mojadomena.pl .mojadomena.pl
bylo kiedys tak : serwer alias mam
www.mojadomena.pl mojadomena.pl *.mojadomena.pl
no i otwierala sie moja strona głowna zamiast aliasu...teraz jest ok...ale wczoraj np mi stronka dzialala dzis rano wstaje juz nie...niektorym dziala na
www.mojastrona.xxx.pl a nie dziala na
http://mojastrona.xxx.pl...czy ktos wie co w virtualhost zmienic?
qermit - 03-08-2008 13:29
http://www.webhostingtalk.com/showthread.php?t=712390podaj najlepiej cala konfiguracje vhostow
pectore - 03-08-2008 13:43
Domyślnie hmm
# httpd Data BEGIN.
#
# Web traffic accounting.
#
LogFormat "%B" traff
#
# GUI Location.
#
Alias /vhcs2 /var/www/vhcs2/gui
<Directory /var/www/vhcs2/gui>
AllowOverride none
Options MultiViews IncludesNoExec FollowSymLinks
ErrorDocument 404 /vhcs2/errordocs/index.php
DirectoryIndex index.html index.php
</Directory>
<Directory /var/www/vhcs2/gui/tools/filemanager>
php_flag register_globals On
php_admin_value open_basedir "/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/"
</Directory>
Alias /vhcs_images /var/www/vhcs2/gui/images
<Directory /var/www/vhcs2/gui/images>
AllowOverride none
Options MultiViews IncludesNoExec FollowSymLinks
</Directory>
#
# Default GUI.
#
<VirtualHost _default_:*>
DocumentRoot /var/www/vhcs2/gui
<Directory /var/www/vhcs2/gui>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# httpd [215.245.457.212] virtual host entry BEGIN.
NameVirtualHost 215.245.457.212:80
# httpd [mojanazwa.pl] dmn group entry BEGIN.
# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.
# httpd [mojanazwa.pl] dmn entry BEGIN.
#
# Web traffic accounting.
#
LogFormat "%B" traff
#
# GUI Location.
#
Alias /vhcs2 /var/www/vhcs2/gui
<Directory /var/www/vhcs2/gui>
AllowOverride none
Options MultiViews IncludesNoExec FollowSymLinks
ErrorDocument 404 /vhcs2/errordocs/index.php
DirectoryIndex index.html index.php
</Directory>
<Directory /var/www/vhcs2/gui/tools/filemanager>
php_flag register_globals On
php_admin_value open_basedir "/var/www/vhcs2/gui/tools/filemanager/:/tmp/:/usr/share/php/"
</Directory>
Alias /vhcs_images /var/www/vhcs2/gui/images
<Directory /var/www/vhcs2/gui/images>
AllowOverride none
Options MultiViews IncludesNoExec FollowSymLinks
</Directory>
#
# Default GUI.
#
<VirtualHost _default_:*>
DocumentRoot /var/www/vhcs2/gui
<Directory /var/www/vhcs2/gui>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# httpd [215.245.457.212] virtual host entry BEGIN.
NameVirtualHost 215.245.457.212:80
# httpd [mojanazwa.pl] dmn group entry BEGIN.
# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.
# httpd [mojanazwa.pl] dmn entry BEGIN.
<VirtualHost 215.245.457.212:80>
#
#User vu2001
#Group vu2001
#
#
#SuexecUserGroup vu2001 vu2001
#
ServerAdmin root@mojanazwa.pl
DocumentRoot /var/www/virtual/mojanazwa.pl/htdocs
ServerName mojanazwa.pl
ServerAlias
www.mojanazwa. mojanazwa.pl *.mojanazwa.pl
ErrorLog /var/log/apache2/users/mojanazwa.pl-error.log
TransferLog /var/log/apache2/users/mojanazwa.pl-access.log
CustomLog /var/log/apache2/mojanazwa.pl-traf.log traff
CustomLog /var/log/apache2/mojanazwa.pl-combined.log combined
Alias /errors /var/www/virtual/mojanazwa.pl/errors/
ErrorDocument 401 /errors/401/index.php
ErrorDocument 403 /errors/403/index.php
ErrorDocument 404 /errors/404/index.php
ErrorDocument 500 /errors/500/index.php
# httpd dmn entry cgi support BEGIN.
ScriptAlias /cgi-bin/ /var/www/virtual/mojanazwa.pl/cgi-bin/
<Directory /var/www/virtual/mojanazwa.pl/cgi-bin>
AllowOverride None
#Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry cgi support END.
<Directory /var/www/vhcs2/gui>
php_admin_value open_basedir "/var/www/vhcs2/gui/:/etc/vhcs2/:/proc/:/var/www/virtual/:/tmp/"
</Directory>
# httpd dmn entry PHP2 support BEGIN.
php_admin_value open_basedir "/var/www/virtual/mojanazwa.pl/:/usr/share/php/:/tmp/"
# httpd dmn entry PHP2 support END.
<Directory /var/www/virtual/mojanazwa.pl/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# httpd [mojanazwa.pl] dmn entry END.
# httpd [mojanazwa.pl] dmn group entry END.
# httpd [kogoslink.pl] dmn group entry BEGIN.
# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.
# httpd [kogoslink.pl] dmn entry BEGIN.
<VirtualHost 215.245.457.212:80>
#
#User vu2003
#Group vu2003
#
#
#SuexecUserGroup vu2003 vu2003
#
ServerAdmin root@kogoslink.pl
DocumentRoot /var/www/virtual/kogoslink.pl/htdocs
ServerName kogoslink.pl
ServerAlias
www.kogoslink.pl kogoslink.pl *.kogoslink.pl
ErrorLog /var/log/apache2/users/kogoslink.pl-error.log
TransferLog /var/log/apache2/users/kogoslink.pl-access.log
CustomLog /var/log/apache2/kogoslink.pl-traf.log traff
CustomLog /var/log/apache2/kogoslink.pl-combined.log combined
Alias /errors /var/www/virtual/kogoslink.pl/errors/
ErrorDocument 401 /errors/401/index.php
ErrorDocument 403 /errors/403/index.php
ErrorDocument 404 /errors/404/index.php
ErrorDocument 500 /errors/500/index.php
# httpd dmn entry cgi support BEGIN.
ScriptAlias /cgi-bin/ /var/www/virtual/kogoslink.pl/cgi-bin/
<Directory /var/www/virtual/kogoslink.pl/cgi-bin>
AllowOverride None
#Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry cgi support END.
<Directory /var/www/vhcs2/gui>
php_admin_value open_basedir "/var/www/vhcs2/gui/:/etc/vhcs2/:/proc/:/var/www/virtual/:/tmp/"
# httpd dmn entry PHP2 support END.
<Directory /var/www/virtual/kogoslink.pl/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# httpd kogoslink.pl] dmn entry END.
# httpd [kogoslink.pl] dmn group entry END.
# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.
# httpd [215.245.457.212] virtual host entry END.
# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.
# httpd Data END.
powiedzcie co tu jest zle oczywiscie ip i nazwy sa fikcyjne. kogoslink.pl to drugi link zalozony . on dziala bo ma normalnie dnsy podpiete w nazwa.pl do mojego dedyka. ale np
www.costam.mojanazwa.pl nie bedzie dzialac. co jest nie tak ?
albo dla mnie tez jest dziwne ze moja pierwsze domena np forum.mojanazwa.pl dziala np tak :
http://forum.mojanazwa.pl i jak doloze
http://www.forum.mojanazwa.pl to juz nie dziala a jak kogos innego link zrobie tak np
http://www.jego.mojanazwa.pl to mu dziala. dziwne to tez zaleznie bo np jak wejde sobie na niektora strone to piszer DNS Error - Server cannot be found...ale nie na kazda.
no ja mialem juz nawet taka koncepcje zeby zamiast tego :
ServerName mojanazwa.pl
ServerAlias
www.mojanazwa. mojanazwa.pl .mojanazwa.pl
dac to :
ServerName mojanazwa.pl
ServerAlias
www.mojanazwa. mojanazwa.pl .mojanazwa.pl
http://.mojanazwa.pl ale to raczej tez nic
zanotowane.pldoc.pisz.plpdf.pisz.plkonstruktor.keep.pl